From: Anton Khorev Date: Sat, 14 Sep 2024 14:15:11 +0000 (+0300) Subject: Always show changeset element page links below headings X-Git-Tag: live~164^2 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/54c0361744f42bad844843b87c2bf79daab4021c?hp=-c Always show changeset element page links below headings --- 54c0361744f42bad844843b87c2bf79daab4021c diff --git a/app/helpers/browse_helper.rb b/app/helpers/browse_helper.rb index 5aef4e7ca..9ea384811 100644 --- a/app/helpers/browse_helper.rb +++ b/app/helpers/browse_helper.rb @@ -92,7 +92,7 @@ module BrowseHelper end link_classes = ["page-link", { "px-1" => width > max_width_for_default_padding }] - tag.ul :class => "pagination pagination-sm mb-1 ms-auto" do + tag.ul :class => "pagination pagination-sm mb-2" do pagination_items(pages, {}).each do |body, page_or_class| linked = !(page_or_class.is_a? String) link = if linked diff --git a/app/views/changesets/_paging_nav.html.erb b/app/views/changesets/_paging_nav.html.erb index fbdf1d507..058738222 100644 --- a/app/views/changesets/_paging_nav.html.erb +++ b/app/views/changesets/_paging_nav.html.erb @@ -1,11 +1,9 @@ -
-

<%= type_and_paginated_count(type, pages) %>

- <% if pages.page_count > 1 %> - <%= sidebar_classic_pagination(pages, "#{type}_page") do |page| - { - :title => type_and_paginated_count(type, pages, page), - :data => { :turbo => "true" } - } - end %> - <% end %> -
+

<%= type_and_paginated_count(type, pages) %>

+<% if pages.page_count > 1 %> + <%= sidebar_classic_pagination(pages, "#{type}_page") do |page| + { + :title => type_and_paginated_count(type, pages, page), + :data => { :turbo => "true" } + } + end %> +<% end %>