From d104736809d9e36b0bc955f3425c4d47a370e78b Mon Sep 17 00:00:00 2001 From: Anton Khorev Date: Tue, 3 Oct 2023 06:07:34 +0300 Subject: [PATCH] Adjust sizes of changeset element headers/pagination --- app/views/browse/_paging_nav.html.erb | 8 +++----- lib/classic_pagination/pagination_helper.rb | 2 +- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/app/views/browse/_paging_nav.html.erb b/app/views/browse/_paging_nav.html.erb index 02a7aa2c8..1f4cbee85 100644 --- a/app/views/browse/_paging_nav.html.erb +++ b/app/views/browse/_paging_nav.html.erb @@ -1,9 +1,7 @@ -
-
-

<%= heading %>

-
+
+

<%= heading %>

<% if pages.page_count > 1 %> -
+
<%= raw pagination_links_bootstrap(pages, {}) { |n| url_for(page_param => n) } %>
<% end %> diff --git a/lib/classic_pagination/pagination_helper.rb b/lib/classic_pagination/pagination_helper.rb index 4c233e0b5..3ff7fbf4e 100644 --- a/lib/classic_pagination/pagination_helper.rb +++ b/lib/classic_pagination/pagination_helper.rb @@ -148,7 +148,7 @@ module ActionView html = "" - html << "
    " + html << "
      " if always_show_anchors && !(wp_first = window_pages[0]).first? html << bootstrap_page_item_link(first.number.to_s, yield(first.number)) -- 2.39.5