X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/c8ee1351049ef1bb4d7b50d071b2a96154266d1d..a2bc5b0faf0b939b24866790223fd51e2b48220a:/app/views/changeset/_changeset_paging_nav.rhtml diff --git a/app/views/changeset/_changeset_paging_nav.rhtml b/app/views/changeset/_changeset_paging_nav.rhtml index df84a3930..b8ac1a65f 100644 --- a/app/views/changeset/_changeset_paging_nav.rhtml +++ b/app/views/changeset/_changeset_paging_nav.rhtml @@ -1,12 +1,18 @@ <% current_page = @edit_pages.current_page %> -Showing page +<%= t'changeset.changeset_paging_nav.showing_page' %> <%= current_page.number %> (<%= current_page.first_item %><% if (current_page.first_item < current_page.last_item) # if more than 1 changeset on page %>-<%= current_page.last_item %><% end %> -of <%= @edit_pages.item_count %>) +<%= t'changeset.changeset_paging_nav.of'%> <%= @edit_pages.item_count %>) -<% if @edit_pages.page_count > 1 %> - | <%= pagination_links_each(@edit_pages, {}) { |n| link_to(n, :display_name => @display_name, :page => n) } %> -<% end %> +<% +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 +%>