annotate .svn/pristine/a9/a9a2a1af33cdbcb28377b68b0bf19fba1a6b64eb.svn-base @ 1082:997f6d7738f7 bug_531

In repo controller entry action, show the page for the file even if it's binary (so user still has access to history etc links). This makes it possible to use the entry action as the default when a file is clicked on
author Chris Cannam <chris.cannam@soundsoftware.ac.uk>
date Thu, 22 Nov 2012 18:04:17 +0000
parents cbb26bc654de
children
rev   line source
Chris@909 1 module Redmine
Chris@909 2 class Notifiable < Struct.new(:name, :parent)
Chris@909 3
Chris@909 4 def to_s
Chris@909 5 name
Chris@909 6 end
Chris@909 7
Chris@909 8 # TODO: Plugin API for adding a new notification?
Chris@909 9 def self.all
Chris@909 10 notifications = []
Chris@909 11 notifications << Notifiable.new('issue_added')
Chris@909 12 notifications << Notifiable.new('issue_updated')
Chris@909 13 notifications << Notifiable.new('issue_note_added', 'issue_updated')
Chris@909 14 notifications << Notifiable.new('issue_status_updated', 'issue_updated')
Chris@909 15 notifications << Notifiable.new('issue_priority_updated', 'issue_updated')
Chris@909 16 notifications << Notifiable.new('news_added')
Chris@909 17 notifications << Notifiable.new('news_comment_added')
Chris@909 18 notifications << Notifiable.new('document_added')
Chris@909 19 notifications << Notifiable.new('file_added')
Chris@909 20 notifications << Notifiable.new('message_posted')
Chris@909 21 notifications << Notifiable.new('wiki_content_added')
Chris@909 22 notifications << Notifiable.new('wiki_content_updated')
Chris@909 23 notifications
Chris@909 24 end
Chris@909 25 end
Chris@909 26 end