summaryrefslogtreecommitdiff
path: root/modules
AgeCommit message (Collapse)Author
2008-12-26Add the graphics rules for both thumbs and resizes (instead of just thumbs).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-26Separate GET and POST in User AdministrationFelix Rabinovich
2008-12-26Fix get_add_form() to use self::positions() so that we get the right ↵Bharat Mediratta
key/value pairs.
2008-12-26Login is 'info' not 'success'Bharat Mediratta
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-26Add missing '=' causing <img> height not to get set.Bharat Mediratta
2008-12-26Group AdministrationFelix Rabinovich
2008-12-26More watermark changes:Bharat Mediratta
Change admin/watermarks/upload -> admin/watermarks/add for consistency. Internationalize position text, store it as text in the database, display it to the admin. Make i18n strings consistent to reduce l10n load.
2008-12-26Remove an HTTP redirect that was breaking the Ajax interface.Bharat Mediratta
2008-12-26User Administration. Add users. Take 3Felix Rabinovich
2008-12-26User Administration. Delete users. Take 3Felix Rabinovich
2008-12-26Simplify the watermark module. We can now upload, edit and delete oneBharat Mediratta
watermark. The UI is rough and we don't yet apply the watermark to images.. that's next.
2008-12-26User Administration. Edit users. Take 3Felix Rabinovich
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-25Add edit/delete links (they're just stubs now, but they open a dialog).Bharat Mediratta
Add active/position to Watermark_Model
2008-12-25Remove extra uniquifying text that Forge adds to uploaded files.Bharat Mediratta
2008-12-25Return the form on success so that we clear out any prior error formsBharat Mediratta
2008-12-25Oops, and also re-ajaxify the form if we replace it.Bharat Mediratta
2008-12-25Reload the form if it's available so that we show form errors and we reset ↵Bharat Mediratta
the form on success.
2008-12-25Ajaxify 'add users'Felix Rabinovich
2008-12-25Remove a test for code that was removedBharat Mediratta
2008-12-25fixes in user edit and deleteFelix Rabinovich
2008-12-25fixed minor log:add typoFelix Rabinovich
2008-12-25get_add_form() -> add_add_form_admin()Bharat Mediratta
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-25added sprintf to strings for tranlation supportFelix Rabinovich
2008-12-25Don't let the admin delete themselves, either. That would be bad.Bharat Mediratta
2008-12-25Only admins can delete users.Bharat Mediratta
2008-12-25Fix rules for editing users.Bharat Mediratta
2008-12-25Rest_Controller -> REST_Controller everywhere, for consistency.Bharat Mediratta
2008-12-25User administration: 1. Add users; 2. Group administration; 3. General cleanupFelix Rabinovich
2008-12-25Convert tag module over to returning JSON.Bharat Mediratta
2008-12-25Fix the way we dump out comment in _show().Bharat Mediratta
2008-12-25Update the form first, then clear it on success (else it doesn't get cleared ↵Bharat Mediratta
on success)
2008-12-25Be consistent: resource is a url, data is the actual JSON encoded result.Bharat Mediratta
2008-12-25Gut the comment module and simplify it. Stop trying to support AtomBharat Mediratta
and XML for now, we have no driver for those technologies so anything we implement is not going to be sufficiently tested and therefore it'll be broken. Change all comment functions to return JSON and update the JS to deal purely with JSON. This is our new protocol for talking to the browser and it should be flexible and portable. Create comments.html.php. This duplicates comment.html.php, but will be more efficient for rendering comments since we won't be creating a new View for every comment we render.
2008-12-24Adding userFelix Rabinovich
2008-12-24Remove stray response:: (not yet time for this.. it's coming!)Bharat Mediratta
2008-12-24Normalize our Admin controllers so that functions always print outBharat Mediratta
their results, as opposed to having them return their view back upstream. This is a little more code in every controller, but it's much less magical and more consistent. Look up the active_theme and active_admin_theme inside the view itself, no need to do that in the controllers. This makes view initialization easier in the controllers.
2008-12-24Tersify a log messageBharat Mediratta
2008-12-24Minor cleanups.Bharat Mediratta
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-23Edit user - first draftFelix Rabinovich
2008-12-23Can't self-close a <div>.Bharat Mediratta
2008-12-23Fixed indentsChad Kieffer
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-23Allow the site admin to upload watermark images. Can't do much with them yet.Bharat Mediratta
2008-12-23Step 1 of converting watermarks over to be an admin page.Bharat Mediratta