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.38.0 app/views/kaminari/blacklight/_page.html.erb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/blacklight-7.37.0/app/views/kaminari/blacklight/_page.html.erb
blacklight-7.37.0 app/views/kaminari/blacklight/_page.html.erb
blacklight-7.36.2 app/views/kaminari/blacklight/_page.html.erb
blacklight-7.36.1 app/views/kaminari/blacklight/_page.html.erb
blacklight-7.36.0 app/views/kaminari/blacklight/_page.html.erb
blacklight-7.35.0 app/views/kaminari/blacklight/_page.html.erb
blacklight-8.1.0 app/views/kaminari/blacklight/_page.html.erb
blacklight-7.34.0 app/views/kaminari/blacklight/_page.html.erb
blacklight-8.0.1 app/views/kaminari/blacklight/_page.html.erb
blacklight-8.0.0 app/views/kaminari/blacklight/_page.html.erb
blacklight-8.0.0.beta8 app/views/kaminari/blacklight/_page.html.erb
blacklight-8.0.0.beta7 app/views/kaminari/blacklight/_page.html.erb
blacklight-8.0.0.beta6 app/views/kaminari/blacklight/_page.html.erb
blacklight-8.0.0.beta5 app/views/kaminari/blacklight/_page.html.erb
blacklight-7.33.1 app/views/kaminari/blacklight/_page.html.erb
blacklight-8.0.0.beta4 app/views/kaminari/blacklight/_page.html.erb
blacklight-8.0.0.beta3 app/views/kaminari/blacklight/_page.html.erb
blacklight-8.0.0.beta2 app/views/kaminari/blacklight/_page.html.erb
blacklight-8.0.0.beta1 app/views/kaminari/blacklight/_page.html.erb