Sha256: d3c17d3ac80626db3d62da1a4447c6a9cea6ed7d835fc63b22b3f9b5fd3a1ba1
Contents?: true
Size: 1.2 KB
Versions: 2
Compression:
Stored size: 1.2 KB
Contents
<% if collection.total_pages > 1 %> <ul class="pager"> <% if collection.previous_page %> <li class="first"> <%= link_to t('pager.first'), page_path(collection.first_page, options) %> </li> <li class="previous"> <%= link_to t('pager.previous'), page_path(collection.previous_page, options), rel: 'prev' %> </li> <% end %> <% if less_pages %> <li class="ellipsis"> … </li> <% end %> <% pages.each do |page| %> <li class="page<%= ' current' if collection.current_page == page %>"> <%= link_to( page, page_path(page, options), rel: (collection.next_page == page ? 'next' : collection.previous_page == page ? 'prev' : nil) ) %> </li> <% end %> <% if more_pages %> <li class="ellipsis"> … </li> <% end %> <% if collection.next_page %> <li class="next"> <%= link_to t('pager.next'), page_path(collection.next_page, options), rel: 'next' %> </li> <li class="last"> <%= link_to t('pager.last'), page_path(collection.last_page, options) %> </li> <% end %> </ul> <% end %>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pagers-3.1.5 | app/views/pagers/_main.html.erb |
pagers-3.1.4 | app/views/pagers/_main.html.erb |