X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/edaddbedaec78a252e988e2271962407e64483fd..ababece2cc0e5caf946242d097e80ae7c3dc877d:/app/views/changeset/_changeset_paging_nav.html.erb?ds=sidebyside diff --git a/app/views/changeset/_changeset_paging_nav.html.erb b/app/views/changeset/_changeset_paging_nav.html.erb index 94edfc31e..52c3decb8 100644 --- a/app/views/changeset/_changeset_paging_nav.html.erb +++ b/app/views/changeset/_changeset_paging_nav.html.erb @@ -1,20 +1,17 @@

-<% current_page = @edit_pages.current_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 %> -<%= t'changeset.changeset_paging_nav.of'%> <%= @edit_pages.item_count %>) +<% if @page > 1 %> +<%= link_to t('changeset.changeset_paging_nav.previous'), params.merge({ :page => @page - 1 }) %> +<% else %> +<%= t('changeset.changeset_paging_nav.previous') %> +<% end %> + +| <%= t('changeset.changeset_paging_nav.showing_page', :page => @page) %> | + +<% if @edits.size < @page_size %> +<%= t('changeset.changeset_paging_nav.next') %> +<% else %> +<%= link_to t('changeset.changeset_paging_nav.next'), params.merge({ :page => @page + 1 }) %> +<% 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 -%>