Sha256: 1c4780520f0d468c9b94690d2c210acf5b8c5aadf071650b90c591d84abd831e

Contents?: true

Size: 1.15 KB

Versions: 96

Compression:

Stored size: 1.15 KB

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

   page_entries_info is passed into the paginate call, e.g. :

   > paginate collection, :page_entries_info => page_entries_info(collection), :theme => :blacklight_compact

   As of Kaminari 0.15, this paginator doesn't have access to the original collection/scope, so it can't render the page entries info directly.
-%>
<% if total_pages > 1 -%>
  <%# #render checks if total_pages > 1, so we can't put our fallback 
  in here .. -%>
  <%= paginator.render do -%>
    <div class="page-links">
      <%= prev_page_tag %> | 
      <span class="page-entries">
        <%= page_entries_info %>
      </span> | 
      <%= next_page_tag %>
    </div>
  <% end -%>
<% else -%>
    <div class="page-links">
      <span class="page-entries">
        <%= page_entries_info %>
      </span>
    </div> 
<% end -%> 

Version data entries

96 entries across 95 versions & 2 rubygems

Version Path
blacklight-7.34.0 app/views/kaminari/blacklight_compact/_paginator.html.erb
blacklight-8.0.1 app/views/kaminari/blacklight_compact/_paginator.html.erb
blacklight-8.0.0 app/views/kaminari/blacklight_compact/_paginator.html.erb
blacklight-8.0.0.beta8 app/views/kaminari/blacklight_compact/_paginator.html.erb
blacklight-8.0.0.beta7 app/views/kaminari/blacklight_compact/_paginator.html.erb
blacklight-8.0.0.beta6 app/views/kaminari/blacklight_compact/_paginator.html.erb
blacklight-8.0.0.beta5 app/views/kaminari/blacklight_compact/_paginator.html.erb
blacklight-7.33.1 app/views/kaminari/blacklight_compact/_paginator.html.erb
blacklight-8.0.0.beta4 app/views/kaminari/blacklight_compact/_paginator.html.erb
blacklight-8.0.0.beta3 app/views/kaminari/blacklight_compact/_paginator.html.erb
blacklight-8.0.0.beta2 app/views/kaminari/blacklight_compact/_paginator.html.erb
blacklight-8.0.0.beta1 app/views/kaminari/blacklight_compact/_paginator.html.erb
blacklight-7.33.0 app/views/kaminari/blacklight_compact/_paginator.html.erb
blacklight-7.32.0 app/views/kaminari/blacklight_compact/_paginator.html.erb
blacklight-7.31.0 app/views/kaminari/blacklight_compact/_paginator.html.erb
blacklight-7.30.0 app/views/kaminari/blacklight_compact/_paginator.html.erb
blacklight-7.29.0 app/views/kaminari/blacklight_compact/_paginator.html.erb
blacklight-7.28.0 app/views/kaminari/blacklight_compact/_paginator.html.erb
blacklight-7.27.1 app/views/kaminari/blacklight_compact/_paginator.html.erb
blacklight-7.27.0 app/views/kaminari/blacklight_compact/_paginator.html.erb