Sha256: e09cfdaf843b71f4111d68a818ce01c3df3f20abf29bc2edf613a9c80529662c

Contents?: true

Size: 926 Bytes

Versions: 12

Compression:

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

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
optimacms-0.4.3 app/views/kaminari/bootstrap4/_paginator.html.erb
optimacms-0.4.2 app/views/kaminari/bootstrap4/_paginator.html.erb
optimacms-0.3.35 app/views/kaminari/bootstrap4/_paginator.html.erb
optimacms-0.3.34 app/views/kaminari/bootstrap4/_paginator.html.erb
optimacms-0.3.30 app/views/kaminari/bootstrap4/_paginator.html.erb
optimacms-0.3.29 app/views/kaminari/bootstrap4/_paginator.html.erb
optimacms-0.3.23 app/views/kaminari/bootstrap4/_paginator.html.erb
optimacms-0.3.15 app/views/kaminari/bootstrap4/_paginator.html.erb
optimacms-0.3.12 app/views/kaminari/bootstrap4/_paginator.html.erb
optimacms-0.3.11 app/views/kaminari/bootstrap4/_paginator.html.erb
optimacms-0.3.4 app/views/kaminari/bootstrap4/_paginator.html.erb
optimacms-0.3.3 app/views/kaminari/bootstrap4/_paginator.html.erb