Sha256: d4d4e20b3428f395362b5b04a541e0d95bb1cbd68efb1ce51ac97ef89d789999

Contents?: true

Size: 932 Bytes

Versions: 3

Compression:

Stored size: 932 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 now using the Bootstrap paginator class
-%>
<%= paginator.render do -%>
  <ul class="pagination">
    <%= prev_page_tag %>
    <%= next_page_tag if Blacklight::Engine.config.blacklight.paginator[:next_button_position] == :before %>
    <% each_relevant_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 if Blacklight::Engine.config.blacklight.paginator[:next_button_position] == :after %>
  </ul>
<% end -%>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
blacklight-8.8.2 app/views/kaminari/blacklight/_paginator.html.erb
blacklight-8.8.1 app/views/kaminari/blacklight/_paginator.html.erb
blacklight-8.8.0 app/views/kaminari/blacklight/_paginator.html.erb