3 def reportable_url(reportable)
4 class_name = reportable.class.name
7 link_to reportable.title, :controller => reportable.class.name.underscore,
9 :display_name => reportable.user.display_name,
12 link_to reportable.display_name.to_s, :controller => reportable.class.name.underscore,
14 :display_name => reportable.display_name
16 link_to "#{reportable.diary_entry.title}, Comment id ##{reportable.id}", :controller => reportable.diary_entry.class.name.underscore,
18 :display_name => reportable.diary_entry.user.display_name,
21 link_to "Changeset ##{reportable.id}, Closed at: #{l(reportable.closed_at.to_datetime, :format => :long)}", :controller => :browse,
22 :action => :changeset,