annotate lib/redmine/notifiable.rb @ 774:58410c63bb84 feature_334

Force a Google search box rudely into the middle of the search view, just to see how it looks. It can be styled reasonably well -- but the adverts, when they appear, are atrocious.
author Chris Cannam <chris.cannam@soundsoftware.ac.uk>
date Thu, 17 Nov 2011 14:56:55 +0000
parents cbce1fd3b1b7
children cbb26bc654de
rev   line source
chris@37 1 module Redmine
chris@37 2 class Notifiable < Struct.new(:name, :parent)
chris@37 3
chris@37 4 def to_s
chris@37 5 name
chris@37 6 end
chris@37 7
chris@37 8 # TODO: Plugin API for adding a new notification?
chris@37 9 def self.all
chris@37 10 notifications = []
chris@37 11 notifications << Notifiable.new('issue_added')
chris@37 12 notifications << Notifiable.new('issue_updated')
chris@37 13 notifications << Notifiable.new('issue_note_added', 'issue_updated')
chris@37 14 notifications << Notifiable.new('issue_status_updated', 'issue_updated')
chris@37 15 notifications << Notifiable.new('issue_priority_updated', 'issue_updated')
chris@37 16 notifications << Notifiable.new('news_added')
Chris@441 17 notifications << Notifiable.new('news_comment_added')
chris@37 18 notifications << Notifiable.new('document_added')
chris@37 19 notifications << Notifiable.new('file_added')
chris@37 20 notifications << Notifiable.new('message_posted')
chris@37 21 notifications << Notifiable.new('wiki_content_added')
chris@37 22 notifications << Notifiable.new('wiki_content_updated')
chris@37 23 notifications
chris@37 24 end
chris@37 25 end
chris@37 26 end