2 def changeset_details(changeset)
4 created_at = distance_of_time_in_words_to_now(changeset.created_at)
5 closed_at = distance_of_time_in_words_to_now(changeset.closed_at)
7 if changeset.closed_at > DateTime.now
8 date << t('browse.created') + ' '
9 date << content_tag(:abbr, t('browse.ago', :ago => created_at), title: l(changeset.created_at))
11 date << t('browse.closed') + ' '
12 both_times = t('browse.created') + ': ' + l(changeset.created_at)
14 both_times << t('browse.closed') + ': ' + l(changeset.closed_at)
15 date << content_tag(:abbr, t('browse.ago', :ago => created_at), title: both_times.html_safe)
17 out << content_tag(:span, date.html_safe, class: 'date')
18 unless params.key?(:display_name)
20 if changeset.user.data_public?
21 userspan << ' ' + t('browse.by') + ' '
22 if changeset.user.data_public?
23 user = link_to changeset.user.display_name, user_path(changeset.user.display_name)
25 user = t('changeset.changeset.anonymous')
27 userspan << content_tag(:span, user, class: 'user')
29 out << content_tag(:span, userspan.html_safe, class: 'user')