From 54c0361744f42bad844843b87c2bf79daab4021c Mon Sep 17 00:00:00 2001 From: Anton Khorev Date: Sat, 14 Sep 2024 17:15:11 +0300 Subject: [PATCH 1/1] Always show changeset element page links below headings --- app/helpers/browse_helper.rb | 2 +- app/views/changesets/_paging_nav.html.erb | 20 +++++++++----------- 2 files changed, 10 insertions(+), 12 deletions(-) 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 %> -- 2.39.5