summaryrefslogtreecommitdiff
path: root/modules/notification/views
AgeCommit message (Collapse)Author
2010-01-24Add the active notifications and rest api key to user profile page.Tim Almdal
2010-01-16Don't use MY_ORM::original() here since the values may not haveBharat Mediratta
changed since the last save. Instead, use the original ORM passed in.
2009-10-28Normalize capitalization ticket #596Tim Almdal
2009-09-10Convert a couple of instances of Item_Model::url(array(), true) to ↵Bharat Mediratta
Item_Model::abs_url()
2009-09-08Move specialized (pretty) url generation back into Item_Model so thatBharat Mediratta
we're not relying on overriding url::site() to do tricks around item urls. This means that you won't get item urls by doing url::site("albums/37"), for example, but it also means that we won't get pretty urls where we don't expect them (like in the action of a <form> element). Incidentally, this will help us move over to using the slug format because if you've got a bad character in a url, the edit forms will now work on it since they'll be id based.
2009-08-29Update all code to use helper method html::clean(), html::purify(), ... ↵Andy Staudacher
instead of SafeString directly.
2009-08-29Refactor all calls of p::clean() to SafeString::of() and p::purify() to ↵Andy Staudacher
SafeString::purify(). Removing any p::clean() calls for arguments to t() and t2() since their args are wrapped in a SafeString anyway.
2009-07-16Non-trivial changes to the event handling code:Bharat Mediratta
1) The item_updated event no longer takes the old and new items. Instead we overload ORM to track the original data and make that available via the item. This will allow us to move event publishing down into the API methods which in turn will give us more stability since we won't require each controller to remember to do it. 2) ORM class now tracks the original values. It doesn't track the original relationships (no need for that, yet) 3) Added new events: item_deleted group_deleted user_deleted
2009-07-09Fix typo in p::purify() call.Bharat Mediratta
2009-07-04Fix for ticket #477. Use nl2br method when rendering comment::text andTim Almdal
item::description. In addition add p::clean or p::purify to places that xss cleaning had missed (i.e. rss feeds)
2009-07-03Split the clean method into two clean and purify. clean is a light weightTim Almdal
approach using html::specialchars and purify uses HTMLPurifier to intelligently cleanse the output fields. Use purifier for text and title fields where it is likely that a user would enter html to format their data.
2009-05-31Run all variables that come from user-entered data through p::clean()Bharat Mediratta
2009-05-31Run p::clean() on any variables that contain data entered by users.Bharat Mediratta
2009-03-04Redefine the batch API to be very very simple. You callBharat Mediratta
batch::start() before starting a series of events, and batch::stop() when you're done. In batch mode, the notification module will store up pending notifications. When the batch job is complete, it'll send a single digested email to each user for all of her notifications. Updated the scaffold and local_import to use this. Haven't modified SimpleUploader yet.
2009-03-04A variety of cleanups:Bharat Mediratta
* Allow for the "movie" type in all of our text * Try to follow the pattern of mainly only passing ORM objects to the view and let it generate its own text (this becomes even more important when 3rd parties want to customize notification messages) * Rename _send_message to be _notify_subscribers to be more acccurate and have it explicitly take a subject in the API * Use Item_Model::url() in the views instead of hand crafting URLs * Reformat HTML in views * Use $comment->author_xxx() functions instead of replicating that code * Fix several places where we were encoding data by doing ucfirst($item->type) with conditionals where we form the text properly. We should *never* be showing data types to the end user! This is not localizable! Note that this probably breaks the existing batch processing code. I am going to redo that in a subsequent pass.
2009-03-04Send 1 items added notification per batch of itemsTim Almdal
2009-02-10Clean up translations to use t() properly and differentiate betweenBharat Mediratta
albums and photos. We should not say the word "item" to users if we can avoid it.
2009-02-02Notifications now send emails when a comment is published. It won'tTim Almdal
send the email if the comment status is not published. This gives the administrator to moderate the comments prior to being published.
2009-02-02code audit fixes + bug fix: don't call sendmail with an empty To list (in ↵Andy Staudacher
notifications module)
2009-02-02Add sending notifications when an item is deleted. We are almostTim Almdal
done, just need to do comments.
2009-02-02As we stagger towards completing the notification module.Tim Almdal
Item changes and Item additions email notifications with this change. Still to come is item deleted, comment added and comment updated.