]> git.openstreetmap.org Git - rails.git/blob - app/views/changesets/_paging_nav.html.erb
Remove type_and_paginated_count helper
[rails.git] / app / views / changesets / _paging_nav.html.erb
1 <% if pages.page_count == 1 %>
2   <h4 class="fs-5">
3     <%= t ".#{type.pluralize}", :count => pages.item_count %>
4   </h4>
5 <% elsif pages.page_count > 1 %>
6   <h4 class="fs-5">
7     <%= t ".#{type.pluralize}_paginated", :x => pages.current_page.first_item,
8                                           :y => pages.current_page.last_item,
9                                           :count => pages.item_count %>
10   </h4>
11
12   <%= sidebar_classic_pagination(pages, "#{type}_page") do |page|
13         {
14           :title => t(".#{type.pluralize}_paginated", :x => page.first_item,
15                                                       :y => page.last_item,
16                                                       :count => pages.item_count),
17           :data => { :turbo => "true" }
18         }
19       end %>
20 <% end %>