2022-11-15 12:21:20 +01:00
|
|
|
- if resources.singleton_class.included_modules.include?(Kaminari::PaginatableWithoutCount)
|
|
|
|
%nav.pagination
|
2024-02-06 17:43:20 +01:00
|
|
|
= link_to_prev_page resources, t("views.pagination.previous").html_safe, param_name: "_page"
|
|
|
|
= link_to_next_page resources, t("views.pagination.next").html_safe, param_name: "_page"
|
2022-11-15 12:21:20 +01:00
|
|
|
- else
|
2024-02-06 17:43:20 +01:00
|
|
|
= paginate resources, param_name: local_assigns.fetch(:param_name) { "_page" }
|