Sha256: 4b5e8c69f0faf5e490a00ebef0e4a30265cde1fd0f56ad45fef6160a5b42cd3b

Contents?: true

Size: 922 Bytes

Versions: 1

Compression:

Stored size: 922 Bytes

Contents

<%# The container tag
  - available local variables
    current_page:  a page object for the currently displayed page
    total_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" role="navigation" aria-label="pager">
    <% if current_page.first? %>
      <%= first_page_tag %>
    <% else %>
      <%= prev_page_tag %>
    <% end %>
    <% each_page do |page| -%>
      <% if page.display_tag? -%>
        <%= page_tag page %>
      <% elsif !page.was_truncated? -%>
        <%= gap_tag %>
      <% end -%>
    <% end -%>
    <% unless current_page.out_of_range? %>
      <% if current_page.last? %>
        <%= last_page_tag %>
      <% else %>
        <%= next_page_tag %>
      <% end %>
    <% end %>
  </nav>
<% end -%>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
admin_help-0.1.5 lib/generators/admin_help/templates/app/views/admin/kaminari/_paginator.html.erb