Skip to content

Commit

Permalink
Don't show older/newer buttons if all items fit on one page
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonKhorev committed Oct 21, 2024
1 parent b753a4b commit 566fb06
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/views/shared/_pagination.html.erb
Original file line number Diff line number Diff line change
@@ -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" %>
Expand Down Expand Up @@ -31,3 +33,5 @@
<% end -%>
</ul>
</nav>

<% end %>

0 comments on commit 566fb06

Please sign in to comment.