]> git.openstreetmap.org Git - rails.git/blob - app/views/changeset/_changeset_paging_nav.html.erb
Fixed a bug in how fields in /message/new were being pre-filled out.
[rails.git] / app / views / changeset / _changeset_paging_nav.html.erb
1 <% current_page = @edit_pages.current_page %>
2
3 <%= t'changeset.changeset_paging_nav.showing_page' %> 
4 <%= current_page.number %> (<%= current_page.first_item %><% 
5 if (current_page.first_item < current_page.last_item) # if more than 1 changeset on page 
6   %>-<%= current_page.last_item %><% 
7 end %>
8 <%= t'changeset.changeset_paging_nav.of'%> <%= @edit_pages.item_count %>)
9
10 <%
11 if @edit_pages.page_count > 1 
12         bboxparam = h(params['bbox'])
13         bboxparam = nil if bboxparam==""
14 %>
15  | <%= pagination_links_each(@edit_pages, {}) { |n| link_to(n,  :display_name => @display_name, :bbox => bboxparam , :page => n) }  %>
16 <%
17 end
18 %>