2022-10-27 09:22:20 +02:00
|
|
|
= paginator.render do
|
2023-04-21 17:19:17 +02:00
|
|
|
%nav.fr-pagination.fr-mt-2w{ role: 'navigation', 'aria-label': 'Pagination' }
|
2022-10-27 09:22:20 +02:00
|
|
|
%ul.fr-pagination__list
|
|
|
|
= first_page_tag unless current_page.first?
|
|
|
|
= prev_page_tag unless current_page.first?
|
|
|
|
- each_page do |page|
|
|
|
|
- if page.display_tag?
|
|
|
|
= page_tag page
|
|
|
|
- elsif !page.was_truncated?
|
|
|
|
= gap_tag
|
|
|
|
= next_page_tag unless current_page.last?
|
|
|
|
= last_page_tag unless current_page.last?
|