Sha256: ab0f73456a1ff5532e2922c4d7f7e4901b2dc592ac5d460d36e242c9f0278715

Contents?: true

Size: 908 Bytes

Versions: 3

Compression:

Stored size: 908 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 -%>
  <div class="pagination <%= pagination_class %>">
    <ul>
    <%= 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>
  </div>
<% end -%>

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
bootstrap-kaminari-views-reload-0.0.5 app/views/kaminari/twitter-bootstrap/_paginator.html.erb
bootstrap-kaminari-views-0.0.5 app/views/kaminari/twitter-bootstrap/_paginator.html.erb
bootstrap-kaminari-views-0.0.3 app/views/kaminari/twitter-bootstrap/_paginator.html.erb