Sha256: d27a64b8e3a1b56ce21278d28509b17fbf7804c7af7dfa370d1970e6daeb1242
Contents?: true
Size: 903 Bytes
Versions: 2
Compression:
Stored size: 903 Bytes
Contents
<% if pagination.has_multiple_pages? %> <div class="pager"> <% if pagination.has_first_page? %> <%= link_to t('pager.first'), pagination.first_page_path, class: 'first' %> <% end %> <% if pagination.has_previous_page? %> <%= link_to t('pager.previous'), pagination.previous_page_path, class: 'previous' %> <% end %> <% pagination.navigation.pages.each do |page| %> <% if pagination.is_current_page? page %> <span class="page current"><%= page %></span> <% else %> <%= link_to page, pagination.page_path(page), class: 'page' %> <% end %> <% end %> <% if pagination.has_next_page? %> <%= link_to t('pager.next'), pagination.next_page_path, class: 'next' %> <% end %> <% if pagination.has_last_page? %> <%= link_to t('pager.last'), pagination.last_page_path, class: 'last' %> <% end %> </div> <% end %>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rails_pagination-2.0.8 | app/views/rails_pagination/_pager.html.erb |
rails_pagination-2.0.7 | app/views/rails_pagination/_pager.html.erb |