Ekdant-Online-Store/admininistrator/view/template/common/pagination.twig
2024-08-06 18:06:00 +05:45

22 lines
727 B
Twig

<ul class="pagination">
{% if first %}
<li class="page-item"><a href="{{ first }}" class="page-link">|&lt;</a></li>
{% endif %}
{% if prev %}
<li class="page-item"><a href="{{ prev }}" class="page-link">&lt;</a></li>
{% endif %}
{% for link in links %}
{% if link.page == page %}
<li class="page-item active"><span class="page-link">{{ link.page }}</span></li>
{% else %}
<li class="page-item"><a href="{{ link.href }}" class="page-link">{{ link.page }}</a></li>
{% endif %}
{% endfor %}
{% if next %}
<li class="page-item"><a href="{{ next }}" class="page-link">&gt;</a></li>
{% endif %}
{% if last %}
<li class="page-item"><a href="{{ last }}" class="page-link">&gt;|</a></li>
{% endif %}
</ul>