]> git.openstreetmap.org Git - rails.git/blob - app/views/changesets/_paging_nav.html.erb
Merge remote-tracking branch 'upstream/pull/5937'
[rails.git] / app / views / changesets / _paging_nav.html.erb
1 <% if pages.page_count == 1 %>
2   <h4 class="fs-5">
3     <%= t ".#{type.pluralize}_title" %>
4     <span class="badge count-number">
5       <%= pages.item_count %>
6     </span>
7   </h4>
8 <% elsif pages.page_count > 1 %>
9   <h4 class="fs-5">
10     <%= t ".#{type.pluralize}_title" %>
11     <span class="badge count-number">
12       <%= t ".range", :x => pages.current_page.first_item,
13                       :y => pages.current_page.last_item,
14                       :count => pages.item_count %>
15     </span>
16   </h4>
17
18   <%= sidebar_classic_pagination(pages, "#{type}_page") do |page|
19         {
20           :title => t(".#{type.pluralize}_paginated", :x => page.first_item,
21                                                       :y => page.last_item,
22                                                       :count => pages.item_count),
23           :data => { :turbo => "true" }
24         }
25       end %>
26 <% end %>