2 def changeset_user_link(changeset)
3 if changeset.user.status == "deleted"
4 t("user.no_such_user.deleted")
5 elsif changeset.user.data_public?
6 link_to(changeset.user.display_name, user_path(changeset.user.display_name))
12 def changeset_details(changeset)
13 if changeset.closed_at > DateTime.now
15 time = distance_of_time_in_words_to_now(changeset.created_at)
16 title = l(changeset.created_at)
19 time = distance_of_time_in_words_to_now(changeset.closed_at)
20 title = "#{t('browse.created')}: #{l(changeset.created_at)} #{t('browse.closed')}: #{l(changeset.closed_at)}".html_safe
23 if params.key?(:display_name)
24 t "browse.#{action}_html",
28 t "browse.#{action}_by_html",
31 :user => changeset_user_link(changeset)