Don't show older/newer buttons if all items fit on one page

This commit is contained in:
Anton Khorev 2024-10-21 14:51:35 +03:00
parent b753a4bf05
commit 566fb06709

View file

@ -1,3 +1,5 @@
<% if older_id || newer_id %>
<% translation_scope ||= "shared.pagination.#{controller.controller_name}" %>
<nav>
<% link_class = "page-link icon-link text-center" %>
@ -31,3 +33,5 @@
<% end -%>
</ul>
</nav>
<% end %>