From: Anton Khorev Date: Sun, 15 Oct 2023 20:14:17 +0000 (+0300) Subject: Call paging heading helpers from partial X-Git-Tag: live~760^2 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/f9ab1e0432354b6fa6f9eb992e59b202e4ef906c Call paging heading helpers from partial --- 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 } %>