1 <% translation_scope ||= "shared.pagination.#{controller.controller_name}" %>
3 <% link_class = "page-link icon-link text-center" %>
4 <ul class="pagination">
5 <% newer_link_content = capture do %>
6 <%= previous_page_svg_tag :class => "flex-shrink-0 d-none d-sm-block" %>
7 <%= t :newer, :scope => translation_scope %>
10 <li class="page-item d-flex">
11 <%= link_to newer_link_content, @params.merge(:before => nil, :after => newer_id), :class => link_class, :data => { "turbo" => true, "turbo-frame" => "pagination", "turbo-action" => "advance" } %>
14 <li class="page-item d-flex disabled">
15 <%= tag.span newer_link_content, :class => link_class %>
19 <% older_link_content = capture do %>
20 <%= t :older, :scope => translation_scope %>
21 <%= next_page_svg_tag :class => "flex-shrink-0 d-none d-sm-block" %>
24 <li class="page-item d-flex">
25 <%= link_to older_link_content, @params.merge(:before => older_id, :after => nil), :class => link_class, :data => { "turbo" => true, "turbo-frame" => "pagination", "turbo-action" => "advance" } %>
28 <li class="page-item d-flex disabled">
29 <%= tag.span older_link_content, :class => link_class %>