You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
{% set route = app.request.attributes.get('_route') %}
|
|
|
|
<nav>
|
|
|
|
<ul class="pagination">
|
|
|
|
<li class="page-item {{ page < 2 ? 'disabled' }}">
|
|
|
|
<a class="page-link" href="{{ path(route, {'page': page - 1}) }}">{{ 'previous'|trans }}</a>
|
|
|
|
</li>
|
|
|
|
{% if page > 1 %}
|
|
|
|
<li class="page-item">
|
|
|
|
<a class="page-link" href="{{ path(route, {'page': page - 1}) }}">{{ page - 1 }}</a>
|
|
|
|
</li>
|
|
|
|
{% endif %}
|
|
|
|
<li class="page-item active" aria-current="page">
|
|
|
|
<a class="page-link">{{ page }}</a>
|
|
|
|
</li>
|
|
|
|
{% if page + 1 <= maxPage %}
|
|
|
|
<li class="page-item">
|
|
|
|
<a class="page-link" href="{{ path(route, {'page': page + 1}) }}">{{ page + 1 }}</a>
|
|
|
|
</li>
|
|
|
|
{% endif %}
|
|
|
|
<li class="page-item {{ page + 1 > maxPage ? 'disabled' }}">
|
|
|
|
<a class="page-link" href="{{ path(route, {'page': page + 1}) }}">{{ 'next'|trans }}</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</nav>
|