From: Andy Allan Date: Wed, 27 Apr 2022 10:47:42 +0000 (+0100) Subject: Rework common details to avoid awkward line breaks X-Git-Tag: live~2065^2 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/0348ceb3d72af260c0dce0013ab2cc59f2203d97?ds=inline;hp=-c Rework common details to avoid awkward line breaks Fixes #3435 Also brings the location information into the list, which avoids a lack of padding before the next header. --- 0348ceb3d72af260c0dce0013ab2cc59f2203d97 diff --git a/app/views/browse/_common_details.html.erb b/app/views/browse/_common_details.html.erb index 5505ee4a9..a4b8b2642 100644 --- a/app/views/browse/_common_details.html.erb +++ b/app/views/browse/_common_details.html.erb @@ -1,4 +1,4 @@ -

+

<%= t "browse.version" %> #<%= common_details.version %>

@@ -11,24 +11,27 @@ <% end %>

-

- <%= t "browse.#{common_details.visible? ? :edited : :deleted}_by_html", - :time => time_ago_in_words(common_details.timestamp, :scope => :"datetime.distance_in_words_ago"), - :user => changeset_user_link(common_details.changeset), - :title => l(common_details.timestamp) %> - · - <%= t "browse.in_changeset" %> - #<%= link_to common_details.changeset_id, :action => :changeset, :id => common_details.changeset_id %> -

+ <%= render :partial => "tag_details", :object => common_details.tags %>