Nekrocuck
This commit is contained in:
22
templates/macros/static-pagination.html
Normal file
22
templates/macros/static-pagination.html
Normal file
@@ -0,0 +1,22 @@
|
||||
{% macro static_pagination(base, current, chain) %}
|
||||
<div class="pagination box inline-block">
|
||||
{% if current == 1 %}
|
||||
[Předchozí]
|
||||
{% else %}
|
||||
{% if chain %}
|
||||
[<a href="{{ base }}&page={{ current - 1 }}">Předchozí</a>]
|
||||
{% else %}
|
||||
[<a href="{{ base }}?page={{ current - 1 }}">Předchozí</a>]
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
 
|
||||
|
||||
{% if chain %}
|
||||
[<b><a href="{{ base }}&page={{ current }}">{{ current }}</a></b>] 
|
||||
[<a href="{{ base }}&page={{ current + 1 }}">Další</a>]
|
||||
{% else %}
|
||||
[<b><a href="{{ base }}?page={{ current }}">{{ current }}</a></b>] 
|
||||
[<a href="{{ base }}?page={{ current + 1 }}">Další</a>]
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endmacro %}
|
||||
Reference in New Issue
Block a user