Sha256: a7701b2dd64f89d4c698129be6b50c20b0ff9dca8e2ca13152f9be455af22db5

Contents?: true

Size: 917 Bytes

Versions: 6

Compression:

Stored size: 917 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 -%>
  <div class="pagination pagination-small pagination-centered mb-0">
    <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

6 entries across 6 versions & 2 rubygems

Version Path
gaku_core-0.0.3 app/views/kaminari/_paginator.html.erb
gaku-0.0.3 core/app/views/kaminari/_paginator.html.erb
gaku-0.0.2 core/app/views/kaminari/_paginator.html.erb
gaku_core-0.0.2 app/views/kaminari/_paginator.html.erb
gaku-0.0.1 core/app/views/kaminari/_paginator.html.erb
gaku_core-0.0.1 app/views/kaminari/_paginator.html.erb