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.33.0 app/views/kaminari/blacklight/_page.html.erb
blacklight-7.32.0 app/views/kaminari/blacklight/_page.html.erb
blacklight-7.31.0 app/views/kaminari/blacklight/_page.html.erb
blacklight-7.30.0 app/views/kaminari/blacklight/_page.html.erb
blacklight-7.29.0 app/views/kaminari/blacklight/_page.html.erb
blacklight-7.28.0 app/views/kaminari/blacklight/_page.html.erb
blacklight-7.27.1 app/views/kaminari/blacklight/_page.html.erb
blacklight-7.27.0 app/views/kaminari/blacklight/_page.html.erb
blacklight-7.26.1 app/views/kaminari/blacklight/_page.html.erb
blacklight-7.26.0 app/views/kaminari/blacklight/_page.html.erb
blacklight-7.25.3 app/views/kaminari/blacklight/_page.html.erb
blacklight-7.25.2 app/views/kaminari/blacklight/_page.html.erb
blacklight-7.25.1 app/views/kaminari/blacklight/_page.html.erb
blacklight-7.25.0 app/views/kaminari/blacklight/_page.html.erb
blacklight-7.24.0 app/views/kaminari/blacklight/_page.html.erb
blacklight-7.23.0.1 app/views/kaminari/blacklight/_page.html.erb
blacklight-7.23.0 app/views/kaminari/blacklight/_page.html.erb
blacklight-7.22.2 app/views/kaminari/blacklight/_page.html.erb
blacklight-7.22.1 app/views/kaminari/blacklight/_page.html.erb
blacklight-7.22.0 app/views/kaminari/blacklight/_page.html.erb