X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/39ffcbc6a25e1ff4565fff3132be59612073276a..01cbc40ed62f006398bcce62fc1f449b432b59b1:/app/views/browse/changeset.html.erb?ds=sidebyside diff --git a/app/views/browse/changeset.html.erb b/app/views/browse/changeset.html.erb index ac8a47069..501712717 100644 --- a/app/views/browse/changeset.html.erb +++ b/app/views/browse/changeset.html.erb @@ -1,77 +1,157 @@ -
- <%= - if @changeset.tags['comment'].to_s != '' - @changeset.tags['comment'].to_s - else - t ('browse.changeset_details.no_comment') - end - %> +
+ <%= linkify(@changeset.tags["comment"].to_s.presence || t("browse.no_comment")) %>
- - <% - created_at = distance_of_time_in_words_to_now(@changeset.created_at) - closed_at = distance_of_time_in_words_to_now(@changeset.closed_at) - if created_at == closed_at - %> - <%= t 'browse.changeset_details.closed_at' %> - - <%= t('browse.changeset_details.ago', :ago => created_at) %> - <% else %> - <%= t 'browse.changeset_details.created_at' %> <%= t('browse.changeset_details.ago', :ago => created_at) %>, - <%= t 'browse.changeset_details.closed_at' %> <%= t('browse.changeset_details.ago', :ago => closed_at) %> +<%= changeset_details(@changeset) %>
+ + <%= render :partial => "tag_details", :object => @changeset.tags.except("comment") %> + ++ <%= link_to(t(".join_discussion"), login_path(:referer => request.fullpath)) %> +
+ <% end %> + + <% if current_user %> + <% unless @changeset.open? %> + + <% else %> ++ <%= t(".still_open") %> +
<% end %> - -