Skip to content

Commit aae86ee

Browse files
lucas-vokolrosa
authored andcommitted
add first and last page nav
1 parent 7ac3835 commit aae86ee

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<nav class="buttons is-right" role="navigation" aria-label="pagination">
22
<span class="mr-3"><%= page.index %> / <%= page.pages_count || "..." %></span>
3+
<%= link_to "↞", url_for(page: 1, **filter_param), class: "pagination-previous", disabled: page.first? %>
34
<%= link_to "Previous page", url_for(page: page.previous_index, **filter_param), class: "pagination-previous", disabled: page.first? %>
45
<%= link_to "Next page", url_for(page: page.next_index, **filter_param), class: "pagination-next", disabled: page.last? %>
6+
<%= link_to "↠", url_for(page: page.pages_count, **filter_param), class: "pagination-next", disabled: page.last? %>
57
</nav>

0 commit comments

Comments
 (0)