X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/ea6926d3de0e0f12f70f0c993261f0dae54aa482..c798962cda8ede6425ce56c59533bc476180a830:/app/views/changeset/_changeset.html.erb diff --git a/app/views/changeset/_changeset.html.erb b/app/views/changeset/_changeset.html.erb index a63792968..4bccbe516 100644 --- a/app/views/changeset/_changeset.html.erb +++ b/app/views/changeset/_changeset.html.erb @@ -13,18 +13,27 @@ %> <%= content_tag "li", :id => "changeset_#{changeset.id}", :data => {:changeset => changeset_data} do %> - <%= link_to(changeset.id, changeset_path(changeset.id), :class => :changeset_id) %> +

+ + <% if changeset.tags['comment'].to_s != '' %> + <%= linkify(h(changeset.tags['comment'])) %> + <% else %> + <%= t 'changeset.changeset.no_comment' %> + <% end %> + +

<% if changeset.closed_at > DateTime.now %> <%= t 'changeset.changeset.still_editing' %> <% else %> - <%= l changeset.closed_at, :format => :long %> + <% closed_at = l changeset.closed_at, :format => :long %> + <%= distance_of_time_in_words_to_now(closed_at) %> <% end %> <% unless params.key?(:display_name) %> - + by <% if changeset.user.data_public? %> <%= link_to changeset.user.display_name, user_path(changeset.user.display_name) %> <% else %> @@ -32,12 +41,4 @@ <% end %> <% end %> - -

- <% if changeset.tags['comment'].to_s != '' %> - <%= linkify(h(changeset.tags['comment'])) %> - <% else %> - <%= t 'changeset.changeset.no_comment' %> - <% end %> -

<% end %>