From f9ab1e0432354b6fa6f9eb992e59b202e4ef906c Mon Sep 17 00:00:00 2001 From: Anton Khorev Date: Sun, 15 Oct 2023 23:14:17 +0300 Subject: [PATCH] Call paging heading helpers from partial --- app/views/browse/_paging_nav.html.erb | 4 ++-- app/views/browse/changeset.html.erb | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/views/browse/_paging_nav.html.erb b/app/views/browse/_paging_nav.html.erb index ed129aad0..aa7ee23b9 100644 --- a/app/views/browse/_paging_nav.html.erb +++ b/app/views/browse/_paging_nav.html.erb @@ -1,6 +1,6 @@
-

<%= heading %>

+

<%= type_and_paginated_count(type, pages) %>

<% if pages.page_count > 1 %> - <%= sidebar_classic_pagination(pages, page_param) %> + <%= sidebar_classic_pagination(pages, "#{type}_page") %> <% end %>
diff --git a/app/views/browse/changeset.html.erb b/app/views/browse/changeset.html.erb index ec4e0c1c2..9225192e1 100644 --- a/app/views/browse/changeset.html.erb +++ b/app/views/browse/changeset.html.erb @@ -90,7 +90,7 @@ <% end %> <% unless @ways.empty? %> - <%= render :partial => "paging_nav", :locals => { :heading => type_and_paginated_count("way", @way_pages), :pages => @way_pages, :page_param => "way_page" } %> + <%= render :partial => "paging_nav", :locals => { :type => "way", :pages => @way_pages } %>