This repository has been archived on 2024-06-26. You can view files and clone it, but cannot push or open issues or pull requests.
sakura/_sakura/templates/yuuno/elements/pagination.tpl

11 lines
613 B
Smarty
Executable file

<div class="pagination">
{% if pagination.page > 0 %}
<a href="{{ urls.format(pagination.urlPattern, [pagination.page]) }}"><span class="fa fa-step-backward"></span></a>
{% endif %}
{% for id,page in pagination.pages %}
<a href="{{ urls.format(pagination.urlPattern, [(id + 1)]) }}"{% if id == pagination.page %} class="current"{% endif %}>{{ id + 1 }}</a>
{% endfor %}
{% if pagination.page + 1 < pagination.pages|length %}
<a href="{{ urls.format(pagination.urlPattern, [(pagination.page + 2)]) }}"><span class="fa fa-step-forward"></span></a>
{% endif %}
</div>