Sha256: d4041ca1861e9b6003f9ef36a79695de208870aa64594a39792aab4ea0cdabe9

Contents?: true

Size: 871 Bytes

Versions: 83

Compression:

Stored size: 871 Bytes

Contents

<%# Link showing page number
  - available local variables
    page:          a page object for "this" page
    url:           url to this page
    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
-%>
<% page_display = number_with_delimiter(page.to_s) %>

<li class="page-item <%= 'active' if page.current? %>">
  <% if page.current? %>
    <span class="page-link" aria-label="<%= t('views.pagination.aria.current_page', page: page_display) %>" aria-current="true"><%= page_display %></span>
  <% else %>
    <%= link_to page_display, url, :remote => remote, :rel => page.next? ? 'next' : page.prev? ? 'prev' : nil, class: 'page-link', aria: { label: t('views.pagination.aria.go_to_page', page: page_display) } %>
  <% end %>
</li>

Version data entries

83 entries across 83 versions & 2 rubygems

Version Path
blacklight-7.21.2 app/views/kaminari/blacklight/_page.html.erb
blacklight-7.21.1 app/views/kaminari/blacklight/_page.html.erb
blacklight-7.21.0 app/views/kaminari/blacklight/_page.html.erb
blacklight-7.20.1 app/views/kaminari/blacklight/_page.html.erb
blacklight-7.20.0 app/views/kaminari/blacklight/_page.html.erb
blacklight-7.19.2 app/views/kaminari/blacklight/_page.html.erb
blacklight-7.19.1 app/views/kaminari/blacklight/_page.html.erb
blacklight-7.19.0 app/views/kaminari/blacklight/_page.html.erb
blacklight-7.18.1 app/views/kaminari/blacklight/_page.html.erb
blacklight-7.18.0 app/views/kaminari/blacklight/_page.html.erb
blacklight-7.17.2 app/views/kaminari/blacklight/_page.html.erb
blacklight-7.17.1 app/views/kaminari/blacklight/_page.html.erb
blacklight-7.17.0 app/views/kaminari/blacklight/_page.html.erb
blacklight-7.16.0 app/views/kaminari/blacklight/_page.html.erb
blacklight-7.15.2 app/views/kaminari/blacklight/_page.html.erb
blacklight-7.15.1 app/views/kaminari/blacklight/_page.html.erb
blacklight-7.15.0 app/views/kaminari/blacklight/_page.html.erb
blacklight-7.14.1 app/views/kaminari/blacklight/_page.html.erb
blacklight-7.14.0 app/views/kaminari/blacklight/_page.html.erb
blacklight-7.13.2 app/views/kaminari/blacklight/_page.html.erb