Sha256: f7b2175380f1d60e51037e99d48777fbe5f3b7d2cf99c14cde67e9d1702ab4ed

Contents?: true

Size: 787 Bytes

Versions: 22

Compression:

Stored size: 787 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 aria-label="<%= t('.title') %>">
  <ul class="pagination pagination-sm m-0">
    <%= first_page_tag %>
    <%= prev_page_tag %>
    <% 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 %>
    <%= last_page_tag %>
  </ul>
</nav>
<% end %>

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
headmin-0.1.2 app/views/headmin/kaminari/_paginator.html.erb
headmin-0.1.1 app/views/headmin/kaminari/_paginator.html.erb