Don't show older/newer buttons if all items fit on one page
This commit is contained in:
parent
b753a4bf05
commit
566fb06709
1 changed files with 4 additions and 0 deletions
|
@ -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 %>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue