Sha256: 98db2d4fbdfba62eb3e12169907836b266603a0e53430eab84603c89e00b6849
Contents?: true
Size: 902 Bytes
Versions: 2
Compression:
Stored size: 902 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-current="page"><%= page_display %><span class="sr-only visually-hidden"> <%= t('views.pagination.aria.current_page', page: page_display) %></span></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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
blacklight-7.40.0 | app/views/kaminari/blacklight/_page.html.erb |
blacklight-7.39.0 | app/views/kaminari/blacklight/_page.html.erb |