Sha256: 0fdfcfcc508c97a49f94a8ca2bfbc5fb504d1c8e6932ed3f850cecd0264d2f36

Contents?: true

Size: 902 Bytes

Versions: 5

Compression:

Stored size: 902 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-centered">
    <ul class="pagination">
      <%= 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

5 entries across 5 versions & 1 rubygems

Version Path
quick_search-core-0.2.0 app/views/quick_search/kaminari/_paginator.html.erb
quick_search-core-0.1.1 app/views/quick_search/kaminari/_paginator.html.erb
quick_search-core-0.1.0 app/views/quick_search/kaminari/_paginator.html.erb
quick_search-core-0.0.1 app/views/quick_search/kaminari/_paginator.html.erb
quick_search-core-0.0.1.test app/views/quick_search/kaminari/_paginator.html.erb