Commit Graph
244 Commits
Author SHA1 Message Date
Felix Rabinovich b647aa0f74 Theme Administration v. 2. Doesn't distinguish between regular and admin themes yet 2009-01-09 23:31:46 +00:00
Andy Staudacher be478eb0c2 HTML fixes 2009-01-09 01:01:39 +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 cb3109784e Wrap permissions in a <fieldset> so that we get a label for the dialog 2009-01-06 10:10:54 +00:00
Bharat Mediratta 393273eaef Add graphics::Can() to let us determine whether the active toolkit
supports a given function.  Right now it's hardcoded to support what
we know about GD.
2009-01-06 09:30:32 +00:00
Bharat Mediratta db4164520a Add pause and done buttons to the progressbar 2009-01-06 08:59:09 +00:00
Bharat Mediratta 3b9e15a613 Don't include jQuery. This means that the form won't work by itself, but we can live with that for now since it's always in a dialog. Including it here breaks our dialog for some reason 2009-01-06 08:46:07 +00:00
Bharat Mediratta 7482b6683e Add "quick edit" which lets you edit a photo's details from the albums
page.
2009-01-05 08:05:50 +00:00
Bharat Mediratta 99804a34b2 Rename:
gQuickEdit to gQuick
   quick_edit -> quick
2009-01-04 19:54:38 +00:00
Bharat Mediratta 24917d337c Guard against missing apache_get_version() 2009-01-04 08:55:00 +00:00
Chad Kieffer 16ef5a8c28 Remove border attribute from table. 2009-01-04 08:49:58 +00:00
Chad Kieffer 9ff452d82a Fixed closing h1 tag. 2009-01-04 03:59:30 +00:00
Bharat Mediratta 9f70af787f Fix preamble 2009-01-04 01:35:35 +00:00
Bharat Mediratta 75d1cfa66b Add admin wireframes link. 2009-01-04 00:25:53 +00:00
Bharat Mediratta e8f1ff580c Add a new quick-edit mode for editing photos when viewing albums.
Implement image rotation this way.
2009-01-03 05:36:16 +00:00
Bharat Mediratta 675cc69393 Detect when imagerotate is missing 2009-01-03 05:26:47 +00:00
Bharat Mediratta e63966b490 Tweak indentation 2009-01-02 01:20:06 +00:00
Felix Rabinovich 50dceb5015 Theme Administration implementation 2009-01-01 18:56:06 +00:00
Bharat Mediratta 540e4ed9eb Turn the permission dialog into a real 3-state faux checkbox. If we
replace them with intuitive icons, we're most of the way there.
2009-01-01 00:43:22 +00:00
Bharat Mediratta 03c60e2b55 Add deepest album link 2009-01-01 00:28:00 +00:00
Bharat Mediratta cd1d023754 Change the preamble for views in two ways:
1) drop unnecessary semicolon
2) start with <?php for extra security in the case that the server itself doesn't
   have short_tags enabled (the app won't work, but we need to make sure that we're
   still secure)
2009-01-01 00:23:29 +00:00
Bharat Mediratta 3352ae6d10 Move 'browse' link above the fold, hide tabs that are inappropriate when there's no install yet 2008-12-31 23:58:53 +00:00
Bharat Mediratta 4573ada534 Extend permissions interface to allow resetting to the parental default. 2008-12-31 19:59:42 +00:00
Bharat Mediratta 7d30e55b85 Rename permissions_edit to permissions_browse for consistency 2008-12-31 09:52:03 +00:00
Bharat Mediratta 34372b86c5 Ajaxify the permissions browsing dialog. It only does allow/deny
right now, it doesn't allow you to reset to inherited values.  That's
next.
2008-12-31 09:50:25 +00:00
Bharat Mediratta 48e91e71e5 Rename permission_xxx to permissions_xxx for consistency 2008-12-31 09:04:18 +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 9ad253a2bb Switch from checkboxes to simple anchors so that we can reflect multiple states better 2008-12-31 04:21:38 +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 ad719b9b6f Fully implement the view_full permission. 2008-12-31 00:18:24 +00:00
Bharat Mediratta 7eb58b6ca4 Add the view_full permission-- doesn't do anything yet 2008-12-30 09:02:26 +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 538bf91a58 Add some basic explanatory text 2008-12-30 04:13:43 +00:00
Bharat Mediratta ed8689f768 Expand on the maintenance code to make it more robust and give the
admin more control.  You can now track running tasks, resume stalled
tasks, cancel running tasks, and remove finished tasks.

Added graphics::compose() as a placeholder for future watermark
operations.

Added CSRF protection to maintenance urls.
2008-12-28 23:48:15 +00:00
Bharat Mediratta 1161cefada Javascript wrapper to ping tasks 2008-12-28 10:14:12 +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 dee20ed6a2 Added the concept of "permanent" messages that we show to admins. Use
this to show a "your thumbs/resizes are out of date" message whenever
we change the graphics rules.  Tweak watermark module to add graphics
rules whenever we make a change, which triggers the graphics module to
add the permanent message.
2008-12-26 05:43:06 +00:00
Felix Rabinovich c154f9f20a Group Administration 2008-12-26 04:35:27 +00:00
Bharat Mediratta 2c91a7e9ce Rework log and message helpers to be parallel, but separate.
1) they now have their own matching severity constants
2) they both have convenience functions success(), info(), warning() and error()
3) they both have severity_class()
2008-12-25 23:43:44 +00:00
Bharat Mediratta 1ed83e5569 Fix bad <input/> 2008-12-24 04:09:41 +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 f476e2169e Change photo::img_dimensions to take the dimensions, not a photo. This lets us use it in the watermark module too 2008-12-23 01:27:50 +00:00
Bharat Mediratta 3a71a9d5c1 Add message severity CSS classes to status messages. Create
message::severity_class() to do the conversion and convert the log
entry code to use that.
2008-12-22 20:23:28 +00:00
Bharat Mediratta 37d24e863c Internationalize welcome block. 2008-12-22 19:46:40 +00:00
Bharat Mediratta bdc0876fa8 Add messaging system for reporting actions back to the user. Make
module install/uninstall work and tie it into the messaging system.
2008-12-22 06:50:20 +00:00
Bharat Mediratta 685a5ca1e1 Support proper rendering of locked modules, add a submit button, point it at admin/modules/save 2008-12-22 04:32:23 +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 849b271a8c Add info/warning/error classes to log messages. 2008-12-21 10:35:30 +00:00
Bharat Mediratta 3ce32dab55 Report actual log entries in the "log entries" admin block. 2008-12-21 03:56:53 +00:00
Bharat Mediratta a19a4729b5 Implement the 'Project News' block with actual news from GMC.. woot! 2008-12-21 02:36:32 +00:00