use PAGE_SIZE constant in pagination.html

pull/146/head
Aevann 2023-05-05 03:39:54 +03:00
parent 8d00769ef4
commit 34df7983ab
1 changed files with 3 additions and 0 deletions

View File

@ -1,6 +1,9 @@
<nav>
<ul class="pagination pagination-sm mb-0 mt-4 pl-1">
{% if not size %}
{% set size = PAGE_SIZE %}
{% endif %}
{% set num_pages = (next_exists / size) | round(0, 'ceil') | int %}
{% set start_point = page - 2 %}