X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/2e2f2124728ca755b2db8f83f022eaea24b647f0..bda35008c89e15991ea88c73ad0036c9e4e53465:/app/views/changeset/_changeset_paging_nav.html.erb diff --git a/app/views/changeset/_changeset_paging_nav.html.erb b/app/views/changeset/_changeset_paging_nav.html.erb index b8ac1a65f..27bc30981 100644 --- a/app/views/changeset/_changeset_paging_nav.html.erb +++ b/app/views/changeset/_changeset_paging_nav.html.erb @@ -1,3 +1,4 @@ +
<% current_page = @edit_pages.current_page %> <%= t'changeset.changeset_paging_nav.showing_page' %> @@ -6,13 +7,5 @@ if (current_page.first_item < current_page.last_item) # if more than 1 changeset %>-<%= current_page.last_item %><% end %> <%= t'changeset.changeset_paging_nav.of'%> <%= @edit_pages.item_count %>) - -<% -if @edit_pages.page_count > 1 - bboxparam = h(params['bbox']) - bboxparam = nil if bboxparam=="" -%> - | <%= pagination_links_each(@edit_pages, {}) { |n| link_to(n, :display_name => @display_name, :bbox => bboxparam , :page => n) } %> -<% -end -%> + | <%= pagination_links_each(@edit_pages, {}) { |n| link_to(n, params.merge({ :page => n })) } %> +