Files
aperonight/app/views/kaminari/_prev_page.html.erb
Kevin BATAILLE a8a8c55041 working on header
2025-08-28 14:27:06 +02:00

14 lines
633 B
Plaintext
Executable File

<%# Link to the "Previous" page
- available local variables
url: url to the previous 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
-%>
<li>
<%= link_to_unless current_page.first?, t('views.pagination.previous').html_safe, url,
class: "px-4 py-2 text-sm font-medium text-gray-500 bg-white border border-gray-300 rounded hover:bg-gray-100 hover:text-gray-700 transition-colors duration-200 shadow-sm hover:shadow-md",
rel: 'prev', remote: remote %>
</li>