demarches-normaliennes/app/views/shared/kaminari/_paginator.html.haml

13 lines
467 B
Text
Raw Normal View History

2022-10-27 09:22:20 +02:00
= paginator.render do
%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?