<nav>
+ <% link_class = "page-link icon-link text-center text-nowrap" %>
<ul class="pagination">
+ <% previous_link_content = capture do %>
+ <%= previous_page_svg_tag :class => "flex-shrink-0" %>
+ <%= t(".previous") %>
+ <% end %>
<% if @page > 1 %>
<li class="page-item">
- <%= link_to t(".previous"), @params.merge(:page => @page - 1), :class => "page-link" %>
+ <%= link_to previous_link_content, @params.merge(:page => @page - 1), :class => link_class %>
</li>
<% else %>
<li class="page-item disabled">
- <%= tag.span t(".previous"), :class => "page-link" %>
+ <%= tag.span previous_link_content, :class => link_class %>
</li>
<% end %>
<li class="page-item active">
- <%= tag.span t(".showing_page", :page => @page), :class => "page-link" %>
+ <%= tag.span t(".showing_page", :page => @page), :class => link_class %>
</li>
+ <% next_link_content = capture do %>
+ <%= t(".next") %>
+ <%= next_page_svg_tag :class => "flex-shrink-0" %>
+ <% end %>
<% if @notes.size < @page_size %>
<li class="page-item disabled">
- <%= tag.span t(".next"), :class => "page-link" %>
+ <%= tag.span next_link_content, :class => link_class %>
</li>
<% else %>
<li class="page-item">
- <%= link_to t(".next"), @params.merge(:page => @page + 1), :class => "page-link" %>
+ <%= link_to next_link_content, @params.merge(:page => @page + 1), :class => link_class %>
</li>
<% end %>
</ul>