1 <% if older_id || newer_id %>
3 <% translation_scope ||= "shared.pagination.#{controller.controller_name}" %>
5 <% link_class = "page-link icon-link text-center" %>
6 <ul class="pagination">
7 <% newer_link_content = capture do %>
8 <%= previous_page_svg_tag :class => "flex-shrink-0 d-none d-sm-block" %>
9 <%= t :newer, :scope => translation_scope %>
12 <li class="page-item d-flex">
13 <%= link_to newer_link_content, @params.merge(:before => nil, :after => newer_id), :class => link_class, :data => { "turbo" => true, "turbo-frame" => "pagination", "turbo-action" => "advance" } %>
16 <li class="page-item d-flex disabled">
17 <%= tag.span newer_link_content, :class => link_class %>
21 <% older_link_content = capture do %>
22 <%= t :older, :scope => translation_scope %>
23 <%= next_page_svg_tag :class => "flex-shrink-0 d-none d-sm-block" %>
26 <li class="page-item d-flex">
27 <%= link_to older_link_content, @params.merge(:before => older_id, :after => nil), :class => link_class, :data => { "turbo" => true, "turbo-frame" => "pagination", "turbo-action" => "advance" } %>
30 <li class="page-item d-flex disabled">
31 <%= tag.span older_link_content, :class => link_class %>