2 <% link_class = "page-link d-flex align-items-center gap-2 text-center" %>
3 <ul class="pagination">
4 <% newer_link_content = capture do %>
5 <%= previous_page_svg_tag :class => "flex-shrink-0 d-none d-sm-block" %>
9 <li class="page-item d-flex">
10 <%= link_to newer_link_content, @params.merge(:before => nil, :after => newer_id), :class => link_class %>
13 <li class="page-item d-flex disabled">
14 <%= tag.span newer_link_content, :class => link_class %>
18 <% older_link_content = capture do %>
20 <%= next_page_svg_tag :class => "flex-shrink-0 d-none d-sm-block" %>
23 <li class="page-item d-flex">
24 <%= link_to older_link_content, @params.merge(:before => older_id, :after => nil), :class => link_class %>
27 <li class="page-item d-flex disabled">
28 <%= tag.span older_link_content, :class => link_class %>