summaryrefslogtreecommitdiff
path: root/core/helpers
AgeCommit message (Collapse)Author
2009-01-01Theme Administration implementationFelix Rabinovich
2009-01-01Allow admins to do anythingBharat Mediratta
2009-01-01Move debug CSS into core/css/debug.css, and enable it for admin themes alsoBharat Mediratta
2008-12-31Extend permissions interface to allow resetting to the parental default.Bharat Mediratta
2008-12-31Turn permission dialog into a browser where you can look at permissions back ↵Bharat Mediratta
up the tree
2008-12-31Preliminary "Edit Permissions" dialog. You can't change permissionsBharat Mediratta
yet, but it shows you which items have locked view perms.
2008-12-31Fix a bug where we were accidentally allowing view permissions whenBharat Mediratta
allowing or resetting permission further down in the tree. This bug was introduced when I refactored the view permission cache into the items table. Updated test to catch it.
2008-12-31Fully implement the view_full permission.Bharat Mediratta
2008-12-30Oops, remove some debug code.Bharat Mediratta
2008-12-30Fix a bug. Unit tests ftw!Bharat Mediratta
2008-12-30Refactor _create_htaccess_files and _delete_htaccess_files intoBharat Mediratta
_update_htaccess_files in preparation for supporting the view_full permission.
2008-12-30Fix typo.Bharat Mediratta
2008-12-30Oops, this got left out of r19497Bharat Mediratta
2008-12-30Add a "Graphics Settings" page that lets admins choose which graphicsBharat Mediratta
toolkit we use. We only allow users to use one toolkit. The UI needs work!
2008-12-30Only show site status to adminsBharat Mediratta
2008-12-30More phodoc cleanup.Bharat Mediratta
2008-12-30comment cleanup.Bharat Mediratta
2008-12-30Make some columns smaller so that multi-column keys don't exceed 1024Bharat Mediratta
bytes on some systems.
2008-12-29Don't let the x/y coordinates in composite go negative.Bharat Mediratta
2008-12-29Properly implement graphics::composite()Bharat Mediratta
2008-12-29Replace __CSRF__ token with a real csrf. This allows links in site status ↵Bharat Mediratta
messages to persiste across sessions.
2008-12-29Oops, my last change broke the default resize dimensionsBharat Mediratta
2008-12-29Make graphics rules take named parameters. This will give us someBharat Mediratta
flexibility in the future.
2008-12-29Remove references to permanent_keyBharat Mediratta
2008-12-29Separate permanent messages out of the message helper and put themBharat Mediratta
into site_status. Show site status in the header in the admin theme.
2008-12-28Expand on the maintenance code to make it more robust and give theBharat Mediratta
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-28First round of a task framework. Tasks are job definitions stored inBharat Mediratta
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-27Ignore resizes for albums when calculating the dirty countBharat Mediratta
2008-12-27Add clear_permanent()Bharat Mediratta
2008-12-26Added the concept of "permanent" messages that we show to admins. UseBharat Mediratta
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-26Added graphics::mark_all_dirty(). The watermark code now marks imagesBharat Mediratta
as dirty if the admin changes the watermark at all.
2008-12-26Fix a bug I introduced when I switched from module id to module name; now ↵Bharat Mediratta
deleting cleans up vars and graphics rules
2008-12-26Add module::clear_var()Bharat Mediratta
2008-12-25Rework log and message helpers to be parallel, but separate.Bharat Mediratta
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-25Big round of normalization of the way that our controllersBharat Mediratta
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-24Lots of deltas rolled up into a bigger change. Sorry for the mess.Bharat Mediratta
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-23Clean up the way that we upload via dialogs:Bharat Mediratta
1) If the create request is Ajax, then return a 201 Created response code 2) If we receive back a 201 response, then switch to the new page. 3) Display a status message when we do an upload.
2008-12-23Only clear the dirty bit if we updated the specific target.Bharat Mediratta
2008-12-23Change photo::create() and album::create() to take ORM instancesBharat Mediratta
instead of ids.
2008-12-23Add very simple graphics toolkits.Bharat Mediratta
Track a set of rules in Graphics_Rule_Model which specify how we turn original images into thumbnails and resizes. There's one set of rules that applies to every image in the Gallery. Track the state of thumbs and resizes with a "dirty" bit. The new graphics helper manages the rules and can rebuild the thumbs and resizes for any images that are considered "dirty". Introduce the concept of an "album cover" which is an item that an album points to. We'll use that item as the source for the album's thumbnail/resize. Conflated with this change (sorry!) I also changed the Var table to use module_name instead of module_id. This may be marginally less efficient, but it's much easier to follow in the database.
2008-12-23Update comment.Bharat Mediratta
2008-12-23Allow the site admin to upload watermark images. Can't do much with them yet.Bharat Mediratta
2008-12-23Change photo::img_dimensions to take the dimensions, not a photo. This lets ↵Bharat Mediratta
us use it in the watermark module too
2008-12-22Fix a typoBharat Mediratta
2008-12-22Add message severity CSS classes to status messages. CreateBharat Mediratta
message::severity_class() to do the conversion and convert the log entry code to use that.
2008-12-22Fix admin/modules url.Bharat Mediratta
2008-12-22Add messaging system for reporting actions back to the user. MakeBharat Mediratta
module install/uninstall work and tie it into the messaging system.
2008-12-22Reinstate the dummy error handler to ensure that we work in a clean install ↵Bharat Mediratta
w/ no database
2008-12-22Normalize CSRF handling into the access helper. Probably not the bestBharat Mediratta
place for it, but it'll do for now. Do CSRF checking in the Admin controller so that we're safe across the board on the admin side.
2008-12-22Lock a couple of modulesBharat Mediratta