Skip to content

Commit

Permalink
Merge pull request #442 from Andrey-Barinov/fix-paginator-#438
Browse files Browse the repository at this point in the history
Fixed pagination.html(incorrect pages display)
  • Loading branch information
fey committed Jul 25, 2024
2 parents 54d3a4f + 6b652a9 commit 37704dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/components/pagination.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
</li>
{% endif %}

{% if page.number >= first_boundary_last_page and paginator.num_pages >= max_pages_without_shrinking %}
{% if page.number >= first_boundary_last_page and paginator.num_pages > max_pages_without_shrinking %}
<li class="page-item"><a class="page-link" href="{% get_pagination_query_string 1 %}">1</a></li>
<li class="page-item disabled"><span class="page-link">&hellip;</span></li>
{% endif %}
Expand All @@ -28,7 +28,7 @@
{% endif %}
{% endfor %}

{% if page.number <= last_boundary_first_page and paginator.num_pages >= max_pages_without_shrinking %}
{% if page.number <= last_boundary_first_page and paginator.num_pages > max_pages_without_shrinking %}
<li class="page-item disabled"><span class="page-link">&hellip;</span></li>
<li class="page-item"><a class="page-link" href="{% get_pagination_query_string paginator.num_pages %}">{{ paginator.num_pages }}</a></li>
{% endif %}
Expand Down

0 comments on commit 37704dc

Please sign in to comment.