2023-12-11 15:18:43 +00:00
|
|
|
{% macro pagination(base, pages, current) %}
|
2024-03-02 23:19:48 +00:00
|
|
|
<div class="pagination box inline-block">
|
2024-02-17 21:24:39 +00:00
|
|
|
{% if current == 1 %}
|
|
|
|
[Předchozí]
|
2023-12-11 15:18:43 +00:00
|
|
|
{% else %}
|
2024-02-17 21:24:39 +00:00
|
|
|
[<a href="{{ base }}?page={{ current - 1 }}">Předchozí</a>]
|
|
|
|
{% endif %}
|
|
|
|
 
|
|
|
|
|
|
|
|
{% for page in 1..(pages + 1) %}
|
|
|
|
{% if page == current %}
|
|
|
|
[<b><a href="{{ base }}?page={{ page }}">{{ page }}</a></b>]
|
|
|
|
{% else %}
|
|
|
|
[<a href="{{ base }}?page={{ page }}">{{ page }}</a>]
|
|
|
|
{% endif %}
|
2024-03-02 23:19:48 +00:00
|
|
|
 
|
2024-02-17 21:24:39 +00:00
|
|
|
{% endfor %}
|
|
|
|
|
|
|
|
{% if current == pages %}
|
|
|
|
[Další]
|
|
|
|
{% else %}
|
|
|
|
[<a href="{{ base }}?page={{ current + 1 }}">Další</a>]
|
2023-12-11 15:18:43 +00:00
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
{% endmacro %}
|