Commit d43df587 authored by Clement Ho's avatar Clement Ho

Fix pagination first and last page buttons

parent bb3d3e54
...@@ -6,4 +6,4 @@ ...@@ -6,4 +6,4 @@
-# per_page: number of items to fetch per page -# per_page: number of items to fetch per page
-# remote: data-remote -# remote: data-remote
%li.first.page-item %li.first.page-item
= link_to_unless current_page.first?, raw(t 'views.pagination.first'), url, remote: remote = link_to_unless current_page.first?, raw(t 'views.pagination.first'), url, remote: remote, class: 'page-link'
...@@ -6,4 +6,4 @@ ...@@ -6,4 +6,4 @@
-# per_page: number of items to fetch per page -# per_page: number of items to fetch per page
-# remote: data-remote -# remote: data-remote
%li.last.page-item %li.last.page-item
= link_to_unless current_page.last?, raw(t 'views.pagination.last'), url, {remote: remote} = link_to_unless current_page.last?, raw(t 'views.pagination.last'), url, {remote: remote, class: 'page-link'}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment