diff --git a/app/helpers/pagination_helper.rb b/app/helpers/pagination_helper.rb index b99a2c8647..ad19be38e7 100644 --- a/app/helpers/pagination_helper.rb +++ b/app/helpers/pagination_helper.rb @@ -1,11 +1,12 @@ module PaginationHelper - def pagination_item(params, &) + def pagination_item(params, title, &) link_class = "page-link icon-link text-center" page_link_content = capture(&) if params page_link = link_to page_link_content, params, :class => link_class, + :title => title, :data => { "turbo" => true, "turbo-frame" => "pagination", "turbo-action" => "advance" } tag.li page_link, :class => "page-item d-flex" else diff --git a/app/views/shared/_pagination.html.erb b/app/views/shared/_pagination.html.erb index f4670aaab0..9bb0de60cf 100644 --- a/app/views/shared/_pagination.html.erb +++ b/app/views/shared/_pagination.html.erb @@ -3,24 +3,26 @@ <% translation_scope ||= "shared.pagination.#{controller.controller_name}" %>