2021-02-06 14:16:21 +01:00
|
|
|
<%# Link to the "First" page
|
|
|
|
- available local variables
|
|
|
|
url: url to the first page
|
|
|
|
current_page: a page object for the currently displayed page
|
|
|
|
total_pages: total number of pages
|
|
|
|
per_page: number of items to fetch per page
|
|
|
|
remote: data-remote
|
|
|
|
-%>
|
2021-02-09 18:58:28 +01:00
|
|
|
<%= link_to (current_page.first? ? '#' : url), rel: 'first', remote: remote, class: "paginate-page paginate-first-page" do %>
|
2021-02-06 15:50:28 +01:00
|
|
|
<span class="sr-only"><%= t('views.pagination.first').html_safe %></span>
|
2021-03-07 18:39:46 +01:00
|
|
|
<%= heroicon "chevron-double-left", variant: :solid, options: { class: "h-5 w-5" } %>
|
2021-02-06 15:50:28 +01:00
|
|
|
<% end %>
|