From 0348ceb3d72af260c0dce0013ab2cc59f2203d97 Mon Sep 17 00:00:00 2001 From: Andy Allan Date: Wed, 27 Apr 2022 11:47:42 +0100 Subject: [PATCH] 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. --- app/views/browse/_common_details.html.erb | 41 ++++++++++++----------- 1 file changed, 22 insertions(+), 19 deletions(-) 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 %> -- 2.39.5