Commit Graph

56 Commits

Author SHA1 Message Date
Bharat Mediratta
ff732d9c7e Fix the spelling of "appearance_menu" and update user_menu so that the
user/groups admin menu option appears again.
2009-04-09 02:25:27 +00:00
Bharat Mediratta
292b51ddd3 Rework the links section of the "Welcome to Gallery3" block so that
the links work and it's more helpful.

In the process, rename the Presentation menu to be Appearance because
that makes more sense to me (and at least one other user who wrote
about it on -devel).
2009-04-06 03:14:13 +00:00
Bharat Mediratta
16b1df4f67 Illegal use of $this in static function site(). Replace with $theme. 2009-03-16 07:40:57 +00:00
Tim Almdal
0bc64efa4a Thin down the scaffolding code so that all that is there is the test
data creation and the packaging code.  The rest ofthe functionality is
either no longer required, or moved to the developer module (MPTT
Tree).
Also provide checking for the active user to be an admin.
2009-03-16 03:50:57 +00:00
Tim Almdal
abdab49aef Move the start/stop translating menu item to the admin menu 2009-03-15 22:45:16 +00:00
Tim Almdal
bf4cd1b813 Move profiling and debugging out of the scaffolding and into the
developer module.
2009-03-15 20:35:24 +00:00
Bharat Mediratta
9d4769da87 Add profiling/debugging switches in the Scaffold menu. 2009-03-10 06:45:55 +00:00
Bharat Mediratta
90a066a727 Make scaffold into a menu, move translation option into it and shorten
it so that it fits on one line.
2009-02-26 01:50:52 +00:00
Chad Kieffer
3bba61b733 Removed hybrid album view link. Not used, probably won't be part of core. 2009-02-23 01:55:40 +00:00
Bharat Mediratta
9e08285c00 Say hello to the new Flash based uploader, courtesy of Eric Zelermyer.
This requires a little trickery to proxy the session id and user agent
through the ActionScript code so that we can assume the same session
in the uploader.  It's also using its own path to add photos since
we'll want to have a slightly different protocol for dealing with
responses (as opposed to JSON or HTML).

A work in progress for sure, but it's already better than what we had before.?\024
2009-02-14 23:03:09 +00:00
Andy Staudacher
989c24dc99 Move l10n enable/disable option to Options menu.
Only available to admins at this point.
2009-02-12 02:51:44 +00:00
Bharat Mediratta
0f2ec1ef19 Rename 'Language Settings' -> 'Language' since it's under the Settings menu anyway 2009-02-10 09:09:27 +00:00
Andy Staudacher
62f3724acb Adding UI for site language selection and user language preference. 2009-02-10 05:37:42 +00:00
Tim Almdal
80d4df3a4a Convert all item->type == "album" to item->is_album()
Convert all item->type == "photo" to item->is_photo()
2009-02-06 03:47:36 +00:00
Chad Kieffer
c166042313 Apply default link styles to links in dialogs, including the Forgot Password link. 2009-02-06 01:47:42 +00:00
Tim Almdal
63ca443649 Add full size image display. Changes the core menu now checks that the
user has authotization before displaying the view fullsize icon.  It
probably needs a better icon, (but u make do with what u have or don't
have :-) )
2009-02-05 18:12:33 +00:00
Bharat Mediratta
79dda6a0c2 Rename "welcome" controller to "scaffold" so that we can eventually
have a welcome page.
2009-02-05 08:39:12 +00:00
Bharat Mediratta
c63c843f18 Drop scaffolding menu link if welcome.php is missing. 2009-02-03 09:43:47 +00:00
Bharat Mediratta
6bfadc14ed Fully implement the user administration backend with drag/drop to add
users to groups.
2009-01-28 22:42:50 +00:00
Bharat Mediratta
2a9d48f8bb Rename Admin_Themedetails -> Admin_Theme_Details 2009-01-27 07:47:55 +00:00
Felix Rabinovich
90666f7e04 Theme details. Initial release 2009-01-22 01:52:41 +00:00
Chad Kieffer
0bbde9e059 Added gQuick to album_top, started implementation, but incomplete so far. Need edit album methods added to the quick controller. 2009-01-15 06:19:26 +00:00
Bharat Mediratta
f3ba69c1d6 Make sure that helper functions are all static. Add new
File_Structure_Test to make sure we don't regress.

According to the PHP docs, the "public" keyword is implied on static
functions, so remove it.  Also, require private static functions to
start with an _.

http://php.net/manual/en/language.oop5.visibility.php
2009-01-14 04:12:02 +00:00
Bharat Mediratta
713ef05b0f Site menu restructure:
* Add 'Scaffold' link to make it more obvious what's going on there
* 'Home' link now goes to albums/1
* 'Admin' is now pushed to the far right.
2009-01-11 21:35:17 +00:00
Bharat Mediratta
d387b31d18 Merge the site admin menu in under the regular Admin menu. 2009-01-11 18:58:00 +00:00
Andy Staudacher
a631fe29f3 i18n refactoring: Rename all _() (reserved by gettext) calls to t().
- And refactor printf to our string interpolation / pluralization syntax
- Also, a slight change to the translations_incomings table, using binary(16) instead of char(32) as message key.
2009-01-08 17:13:06 +00:00
Bharat Mediratta
f8f471c59b Turn statistics into a menu 2009-01-07 06:25:54 +00:00
Bharat Mediratta
7017e95c99 Allow passing a query string as an argument to Item_Model::url() 2009-01-04 09:28:57 +00:00
Chad Kieffer
83ae71e3cb Linked up a photo's return to parent album view. 2009-01-04 09:16:16 +00:00
Bharat Mediratta
625d078557 Extend Theme_View to look in modules for photo and album menus. Move
"view comments" link to the comment menu helper.
2009-01-04 07:40:37 +00:00
Chad Kieffer
f7f2fa10cd Started to wire up album and photo view menus. Need photo's parent album link added. Also need add the slideshow link to the menu. 2009-01-04 03:43:12 +00:00
Bharat Mediratta
8595b75d9b Restructire site admin menu a bit:
Rename menu "General Settings" -> "Settings"
  Rename "Comments Moderation" -> "Comments"
  Move "Content" -> "Configure Spam Filtering" -> "Settings" -> "Spam Filtering"
2009-01-02 20:18:44 +00:00
Felix Rabinovich
50dceb5015 Theme Administration implementation 2009-01-01 18:56:06 +00:00
Bharat Mediratta
610494296b Turn permission dialog into a browser where you can look at permissions back up the tree 2008-12-31 09:02:40 +00:00
Bharat Mediratta
1579494ec4 Preliminary "Edit Permissions" dialog. You can't change permissions
yet, but it shows you which items have locked view perms.
2008-12-31 04:05:41 +00:00
Bharat Mediratta
a481a684b6 Add a "Graphics Settings" page that lets admins choose which graphics
toolkit we use.  We only allow users to use one toolkit.  The UI needs
work!
2008-12-30 04:14:57 +00:00
Bharat Mediratta
74d4e7d505 First round of a task framework. Tasks are job definitions stored in
the database.  They're started with admin/maintenance/start/[task_name]
which sends down some JS/HTML which regularly pings the task at
admin/maintenance/start/[task_id] until its done.

The UI is still very rough.  It works, though!
2008-12-28 10:12:41 +00:00
Bharat Mediratta
fdc0f83024 Big round of normalization of the way that our controllers
communicate.  Almost all controllers now use JSON to speak to the
theme when we're dealing with form processing.  This means tht we only
send the form back and forth, but we use a JSON protocol to tell the
browser success/error status as well as the location of any newly
created resources, or where the browser should redirect the user.

Lots of small changes:
1) Admin -> Edit Profile is gone.  Instead I fixed the "Modify Profile" link
   in the top right corner to be a modal dialog

2) We use json_encode everywhere.  No more Atom/XML for now.  We can bring those
   back later, though.  For now there's a lot of code duplication but that'll be
   easy to clean up.

3) REST_Controller is no longer abstract.   All methods its subclasses should create
   throw exceptions, which means that subclasses don't have to implement stubs for
   those methods.

4) New pattern: helper method get_add_form calls take an Item_Model,
   not an id since we have to load the Item_Model in the controller
   anyway to check permissions.

5) User/Groups REST resources are separate from User/Group in the site
   admin.  They do different things, we should avoid confusing overlap.
2008-12-25 05:12:46 +00:00
Bharat Mediratta
672eca5337 Lots of deltas rolled up into a bigger change. Sorry for the mess.
1) Deleted in-place-editing.  We'll be replacing this with a real edit
   system that groups settings together and is more coherent.

2) Tweaked the way that dialog boxes work to get the ajax stuff working
   again.  It's imperfect and does not work properly for uploading images.
   This is going to get redone also, but this is a good resting point.

3) Created edit forms for albums and photos.  Moved _update and _create out
   of Items_Controller and into the individual subclasses.

4) Created access::required which is a shorthand for:
    if (!access::can(...)) {
      access::forbidden();
    }

5) Added validation rules to Items_Model

6) Converted login to use the regular modal dialog approach in the theme.
2008-12-24 00:20:26 +00:00
Bharat Mediratta
03042850ad Fix admin/modules url. 2008-12-22 10:32:32 +00:00
Bharat Mediratta
fe27bd1eb3 Change the way that we track modules.
Each module now has a "module.info" file that has information about
the module, including the core.  We can display the installed version,
and the version in the code.

Also take a first shot at a modules admin page.
2008-12-22 03:41:33 +00:00
Bharat Mediratta
1432ab9aca Swap "Content" and "Modules" 2008-12-21 20:44:02 +00:00
Bharat Mediratta
855a5928ce Create a new pattern for Site Admin controllers:
1) They must all start with "admin_".  This pattern is not directly
   routable.

2) Their urls must be /admin/xxx.

3) The Admin_Controller will take the xxx and look for Admin_Xxx_Controller
   and will delegate to that admin controller, after doing security checks.

Moved the users and dashboard views into individual modules for now.
2008-12-19 09:47:13 +00:00
Bharat Mediratta
c67234974d Refactor site admin menu into a theme function and build the menus in
the various modules.  In the process, rename xxx_menu::site_navigation() to just
xxx_menu::site().  And add xxx_menu::admin().

The menus are the same as before, but I changed the HTML to be
consistent with the way that we do it in the regular site, and this
broke the superfish styles.  I don't know how to fix this.. help me
Chad!
2008-12-18 07:32:34 +00:00
Bharat Mediratta
2f8b4df0f5 Protect menus and blocks against the fact that we don't have an item
on tag pages.
2008-12-15 21:23:00 +00:00
Tim Almdal
1d3e1484a7 The admin high level menu is shown if the active user is not a guest. Other sub menus depend on the appropriate level of access 2008-12-15 19:51:49 +00:00
Felix Rabinovich
c46bd97407 load admin subpages AJAXy way 2008-12-14 21:50:10 +00:00
Felix Rabinovich
13ad40ab5c Created admin controller and made admin obey admin theme settings 2008-12-14 02:23:37 +00:00
Bharat Mediratta
7e4d13d9bd Point the Site Admin link at the wireframe for now. 2008-12-12 08:00:07 +00:00
Bharat Mediratta
2cf3233f54 Get rid of all pseudo users and pseudo groups, while preserving all
other functionality.  This makes our user/group and access code
fully consistent.
2008-12-12 00:59:30 +00:00