12 lines
458 B
Text
12 lines
458 B
Text
= paginator.render do
|
|
%nav.fr-pagination{ role: 'navigation', 'aria-label': 'Pagination' }
|
|
%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?
|