22 lines
727 B
Twig
22 lines
727 B
Twig
<ul class="pagination">
|
|
{% if first %}
|
|
<li class="page-item"><a href="{{ first }}" class="page-link">|<</a></li>
|
|
{% endif %}
|
|
{% if prev %}
|
|
<li class="page-item"><a href="{{ prev }}" class="page-link"><</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">></a></li>
|
|
{% endif %}
|
|
{% if last %}
|
|
<li class="page-item"><a href="{{ last }}" class="page-link">>|</a></li>
|
|
{% endif %}
|
|
</ul>
|