2 def reportable_url(reportable)
5 url_for(:controller => reportable.class.name.underscore, :action => :view, :display_name => reportable.user.display_name, :id => reportable.id)
7 url_for(:controller => reportable.class.name.underscore, :action => :view, :display_name => reportable.display_name)
9 url_for(:controller => reportable.diary_entry.class.name.underscore, :action => :view, :display_name => reportable.diary_entry.user.display_name, :id => reportable.diary_entry.id, :anchor => "comment#{reportable.id}")
11 url_for(:controller => :browse, :action => :note, :id => reportable.id)
15 def reportable_title(reportable)
20 reportable.display_name
22 "#{reportable.diary_entry.title}, Comment id ##{reportable.id}"
24 "Note ##{reportable.id}"