Sha256: 6ee09614719122859db29f8995cfc5bdab914b53626f8f54ed93a78f619a1cb1

Contents?: true

Size: 861 Bytes

Versions: 13

Compression:

Stored size: 861 Bytes

Contents

<%# The container tag
  - available local variables
    current_page:  a page object for the currently displayed page
    num_pages:     total number of pages
    per_page:      number of items to fetch per page
    remote:        data-remote
    paginator:     the paginator that renders the pagination tags inside
-%>
<%- pagination_class ||= '' %>
<%= paginator.render do -%>
<ul class="pagination <%= pagination_class %>">
  <%= first_page_tag unless current_page.first? %>
  <%= prev_page_tag unless current_page.first? %>
  <% each_page do |page| -%>
    <% if page.left_outer? || page.right_outer? || page.inside_window? -%>
      <%= page_tag page %>
    <% elsif !page.was_truncated? -%>
      <%= gap_tag %>
    <% end -%>
  <% end -%>
  <%= next_page_tag unless current_page.last? %>
  <%= last_page_tag unless current_page.last? %>
</ul>
<% end -%>

Version data entries

13 entries across 13 versions & 4 rubygems

Version Path
storytime-2.1.6 app/views/kaminari/_paginator.html.erb
storytime-2.1.5 app/views/kaminari/_paginator.html.erb
storytime-2.1.4 app/views/kaminari/_paginator.html.erb
storytime-2.1.3 app/views/kaminari/_paginator.html.erb
storytime-2.1.2 app/views/kaminari/_paginator.html.erb
storytime-2.1.1 app/views/kaminari/_paginator.html.erb
storytime-2.1.0 app/views/kaminari/_paginator.html.erb
chaskiq-0.0.6 app/views/kaminari/twitter-bootstrap-3/_paginator.html.erb
chaskiq-0.0.5 app/views/kaminari/twitter-bootstrap-3/_paginator.html.erb
chaskiq-0.0.4 app/views/kaminari/twitter-bootstrap-3/_paginator.html.erb
storytime-2.0.0 app/views/kaminari/_paginator.html.erb
spree_frontend-3.0.0.rc1 app/views/kaminari/twitter-bootstrap-3/_paginator.html.erb
bootstrap-kaminari-views-0.0.5 app/views/kaminari/twitter-bootstrap-3/_paginator.html.erb