14 řádky
407 B
HTML
14 řádky
407 B
HTML
|
{% macro static_pagination(base, current) %}
|
||
|
<div class="box inline-block pagination">
|
||
|
{% if current == 1 %}
|
||
|
[Předchozí]
|
||
|
{% else %}
|
||
|
[<a href="{{ base }}?page={{ current - 1 }}">Předchozí</a>]
|
||
|
{% endif %}
|
||
|
 
|
||
|
|
||
|
[<b><a href="{{ base }}?page={{ current }}">{{ current }}</a></b>] 
|
||
|
[<a href="{{ base }}?page={{ current + 1 }}">Další</a>]
|
||
|
</div>
|
||
|
{% endmacro %}
|