From: Anton Khorev Date: Tue, 3 Oct 2023 03:07:34 +0000 (+0300) Subject: Adjust sizes of changeset element headers/pagination X-Git-Tag: live~760^2~7 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/d104736809d9e36b0bc955f3425c4d47a370e78b?ds=inline Adjust sizes of changeset element headers/pagination --- 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))