Skip to content

Commit

Permalink
Merge pull request #926 from maykinmedia/issue/1983-hide-pagination-i…
Browse files Browse the repository at this point in the history
…f-not-needed

[#1983] Only show pagination if there are multiple pages
  • Loading branch information
stevenbal authored Jan 4, 2024
2 parents 1dda63d + acbb6b2 commit 89c5c59
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
{% button href=href text=text icon="arrow_backward" %}
{% endif %}

{% if page_obj.has_other_pages %}
<div class="pagination__pages">
{% if page_obj.has_previous %}
<a class="pagination__link"
Expand Down Expand Up @@ -83,4 +84,5 @@
<span class="pagination__item">{% icon icon="chevron_right" %}</span>
{% endif %}
</div>
{% endif %}
</div>

0 comments on commit 89c5c59

Please sign in to comment.