2 include ActionView::Helpers::TranslationHelper
4 def note_event(event, at, by)
6 t("notes.show.event_#{event}_by_anonymous_html",
7 :time_ago => friendly_date_ago(at))
9 t("notes.show.event_#{event}_by_html",
10 :time_ago => friendly_date_ago(at),
11 :user => note_author(by))
15 def note_author(author, link_options = {})
18 elsif author.status == "deleted"
19 t("users.no_such_user.deleted")
21 link_to h(author.display_name), link_options.merge(:controller => "/users", :action => "show", :display_name => author.display_name)