openstreetmap-website/app/views/changeset/_changeset_paging_nav.html.erb
Tom Hughes 261a93fbbc Replace the existing pagination of changesets in the browser with a
simple next/previous pagination that avoids the need to count the total
number of matches.
2009-11-18 20:21:54 +00:00

17 lines
440 B
Text

<p>
<% if @page > 1 %>
<%= link_to t('changeset.changeset_paging_nav.previous'), :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'), :page => @page + 1 %>
<% end %>
</p>