2 def changeset_user_link(changeset)
3 if changeset.user.status != "deleted" && changeset.user.data_public?
4 link_to(changeset.user.display_name, user_path(changeset.user.display_name))
10 def changeset_details(changeset)
11 if changeset.closed_at > DateTime.now
13 time = distance_of_time_in_words_to_now(changeset.created_at)
14 title = l(changeset.created_at)
17 time = distance_of_time_in_words_to_now(changeset.closed_at)
18 title = "#{t('browse.created')}: #{l(changeset.created_at)} #{t('browse.closed')}: #{l(changeset.closed_at)}".html_safe
21 if params.key?(:display_name)
22 t "browse.#{action}_html",
26 t "browse.#{action}_by_html",
29 :user => changeset_user_link(changeset)