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}")
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)
28 def reportable_dates(reportable)
30 when DiaryEntry, DiaryComment, Note
31 created_at_time = tag.time l(reportable.created_at.to_datetime, :format => :friendly),
32 :datetime => reportable.created_at.xmlschema
33 updated_at_time = tag.time l(reportable.updated_at.to_datetime, :format => :friendly),
34 :datetime => reportable.updated_at.xmlschema
35 t "issues.helper.reportable_dates.created_on_updated_on_html", :datetime_created => created_at_time, :datetime_updated => updated_at_time
37 created_at_time = tag.time l(reportable.created_at.to_datetime, :format => :friendly),
38 :datetime => reportable.created_at.xmlschema
39 t "issues.helper.reportable_dates.created_on_html", :datetime_created => created_at_time
44 count = Issue.visible_to(current_user).open.limit(Settings.max_issues_count).size
45 if count >= Settings.max_issues_count
46 tag.span(I18n.t("count.at_least_pattern", :count => Settings.max_issues_count), :class => "badge count-number")
48 tag.span(count, :class => "badge count-number")