demarches-normaliennes/app/views/administrate/application/_pagination.html.haml
2023-04-21 17:19:17 +02:00

6 lines
355 B
Text

- if resources.singleton_class.included_modules.include?(Kaminari::PaginatableWithoutCount)
%nav.pagination
= link_to_prev_page resources, t("views.pagination.previous"), param_name: "_page"
= link_to_next_page resources, t("views.pagination.next"), param_name: "_page"
- else
= paginate resources, param_name: "_page", views_prefix: 'shared'