2 def reportable_url(reportable)
5 diary_entry_url(reportable.user, reportable)
9 diary_entry_url(reportable.diary_entry.user, reportable.diary_entry, :anchor => "comment#{reportable.id}")
11 url_for(:controller => :browse, :action => :note, :id => reportable.id)
15 def reportable_title(reportable)
20 reportable.display_name
22 I18n.t("issues.helper.reportable_title.diary_comment", :entry_title => reportable.diary_entry.title, :comment_id => reportable.id)
24 I18n.t("issues.helper.reportable_title.note", :note_id => reportable.id)
29 count = Issue.visible_to(current_user).open.limit(100).size
31 tag.span("99+", :class => "count-number")
33 tag.span(count, :class => "count-number")