Sha256: 1eb6cbd3af84107a7d0cf57bf209e98f345b60cf90e0d88fa19f3fe735c27778

Contents?: true

Size: 928 Bytes

Versions: 5

Compression:

Stored size: 928 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_page_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_page_position] == :after %>
  </ul>
<% end -%>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
blacklight-8.7.0 app/views/kaminari/blacklight/_paginator.html.erb
blacklight-8.6.1 app/views/kaminari/blacklight/_paginator.html.erb
blacklight-8.6.0 app/views/kaminari/blacklight/_paginator.html.erb
blacklight-8.5.1 app/views/kaminari/blacklight/_paginator.html.erb
blacklight-8.5.0 app/views/kaminari/blacklight/_paginator.html.erb