]> git.openstreetmap.org Git - rails.git/blob - app/views/changeset/_changeset_paging_nav.html.erb
Merge 16355:16480 from trunk.
[rails.git] / app / views / changeset / _changeset_paging_nav.html.erb
1 <p>
2 <% current_page = @edit_pages.current_page %>
3
4 <%= t'changeset.changeset_paging_nav.showing_page' %> 
5 <%= current_page.number %> (<%= current_page.first_item %><% 
6 if (current_page.first_item < current_page.last_item) # if more than 1 changeset on page 
7   %>-<%= current_page.last_item %><% 
8 end %>
9 <%= t'changeset.changeset_paging_nav.of'%> <%= @edit_pages.item_count %>)
10
11 <%
12 if @edit_pages.page_count > 1 
13         bboxparam = h(params['bbox'])
14         bboxparam = nil if bboxparam==""
15 %>
16  | <%= pagination_links_each(@edit_pages, {}) { |n| link_to(n,  :display_name => @display_name, :bbox => bboxparam , :page => n) }  %>
17 <%
18 end
19 %>
20 </p>