diff --git a/app/helpers/pagination_helper.rb b/app/helpers/pagination_helper.rb index c75c6c2a565..46b49a90f8a 100644 --- a/app/helpers/pagination_helper.rb +++ b/app/helpers/pagination_helper.rb @@ -1,11 +1,12 @@ module PaginationHelper - def pagination_item(params, &block) + def pagination_item(params, title, &block) link_class = "page-link icon-link text-center" page_link_content = capture(&block) 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 f8d4554824b..265afc5cce4 100644 --- a/app/views/shared/_pagination.html.erb +++ b/app/views/shared/_pagination.html.erb @@ -1,23 +1,25 @@