16 lines
1 KiB
Plaintext
16 lines
1 KiB
Plaintext
<%# 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
|
|
-%>
|
|
<%= link_to (current_page.first? ? '#' : url), rel: 'first', remote: remote, class: "relative inline-flex items-center px-2 py-2 rounded-l-md border border-gray-300 bg-white text-sm font-medium text-gray-500 hover:bg-gray-50" do %>
|
|
<span class="sr-only"><%= t('views.pagination.first').html_safe %></span>
|
|
<!-- Heroicon name: solid/chevron-double-left -->
|
|
<svg class="h-5 w-5" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true">
|
|
<path fill-rule="evenodd" d="M15.707 15.707a1 1 0 01-1.414 0l-5-5a1 1 0 010-1.414l5-5a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 010 1.414zm-6 0a1 1 0 01-1.414 0l-5-5a1 1 0 010-1.414l5-5a1 1 0 011.414 1.414L5.414 10l4.293 4.293a1 1 0 010 1.414z" clip-rule="evenodd" />
|
|
</svg>
|
|
<% end %>
|