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