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.8.0 app/views/kaminari/blacklight_compact/_paginator.html.erb
blacklight-7.7.0 app/views/kaminari/blacklight_compact/_paginator.html.erb
blacklight-7.6.0 app/views/kaminari/blacklight_compact/_paginator.html.erb
blacklight-7.5.1 app/views/kaminari/blacklight_compact/_paginator.html.erb
blacklight-7.5.0 app/views/kaminari/blacklight_compact/_paginator.html.erb
blacklight-7.4.2 app/views/kaminari/blacklight_compact/_paginator.html.erb
blacklight-7.4.1 app/views/kaminari/blacklight_compact/_paginator.html.erb
blacklight-7.4.0 app/views/kaminari/blacklight_compact/_paginator.html.erb
blacklight-7.3.0 app/views/kaminari/blacklight_compact/_paginator.html.erb
blacklight-7.2.0 app/views/kaminari/blacklight_compact/_paginator.html.erb
blacklight-7.1.0 app/views/kaminari/blacklight_compact/_paginator.html.erb
blacklight-7.1.0.alpha app/views/kaminari/blacklight_compact/_paginator.html.erb
blacklight-7.0.1 app/views/kaminari/blacklight_compact/_paginator.html.erb
blacklight-7.0.0 app/views/kaminari/blacklight_compact/_paginator.html.erb
blacklight-7.0.0.rc2 app/views/kaminari/blacklight_compact/_paginator.html.erb
blacklight-7.0.0.rc1 app/views/kaminari/blacklight_compact/_paginator.html.erb