]> git.openstreetmap.org Git - rails.git/blob - app/views/trace/_trace_paging_nav.rhtml
Require data to be public before editing
[rails.git] / app / views / trace / _trace_paging_nav.rhtml
1 <% current_page = @trace_pages.current_page %>
2
3 Showing page 
4 <%= current_page.number %> (<%= current_page.first_item %><% 
5 if (current_page.first_item < current_page.last_item) # if more than 1 trace on page 
6   %>-<%= current_page.last_item %><% 
7 end %>
8 of <%= @trace_pages.item_count %>)
9
10 <% if @trace_pages.page_count > 1 %>
11  | <%= pagination_links(@trace_pages) %>
12 <% end %>