Sha256: 97c431695bb39bfc63c867ed700a3b3f38d128614cae6342ee318f53c806c0d8

Contents?: true

Size: 726 Bytes

Versions: 4

Compression:

Stored size: 726 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
-%>
<%= paginator.render do -%>
  <nav class="pagination-container">
    <%= prev_page_tag %>
    <%= next_page_tag  %>
    <div class="page_links">
    <% 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 -%>
  </div>
  </nav>
<% end -%>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
blacklight-3.0.0 app/views/kaminari/blacklight/_paginator.html.erb
blacklight-3.0.0pre8 app/views/kaminari/blacklight/_paginator.html.erb
blacklight-3.0.0pre7 app/views/kaminari/blacklight/_paginator.html.erb
blacklight-3.0.0pre6 app/views/kaminari/blacklight/_paginator.html.erb