2 def note_event(event, at, by)
4 I18n.t("browse.note." + event + "_by_anonymous",
5 :when => friendly_date(at),
9 I18n.t("browse.note." + event + "_by",
10 :when => friendly_date(at),
12 :user => note_author(by)
17 def note_author(author, link_options = {})
20 elsif author.status == "deleted"
21 t("user.no_such_user.deleted")
23 link_to h(author.display_name), link_options.merge(:controller => "user", :action => "view", :display_name => author.display_name)