2 def note_event(event, at, by)
4 I18n.t("browse.note." + event + "_by_anonymous",
5 :when => friendly_date(at),
6 :exact_time => l(at)).html_safe
8 I18n.t("browse.note." + event + "_by",
9 :when => friendly_date(at),
11 :user => note_author(by)).html_safe
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)