{% if nbPages is defined and nbPages > 1 %}
<div class="col-md-12 col-sm-12 col-xs-12">
<ul class="pager">
<li>
{% if currentPage > 1 %}
<a href="{{ path('ac_platform_theme', {'slug': slug, 'id': id, 'page': currentPage-1}) }}" title="{{ 'ancre.pagination.retour' |trans({}, 'app') |raw }}">«</a>
{% else %}
<span class="disabled">«</span>
{% endif %}
</li>
{% for i in 1..nbPages %}
<li class="hidden-xs {% if currentPage == i %}active{% endif %}"><a href="{{ path('ac_platform_theme', {'slug': slug, 'id': id, 'page': i}) }}">{{ i }}</a></li>
{% endfor %}
<li class="hidden-sm hidden-md hidden-lg pl-5 pr-5">Page<br/>{{ currentPage }}/{{ nbPages }}</li>
<li>
{% if currentPage < nbPages %}
<a href="{{ path('ac_platform_theme', {'slug': slug, 'id': id, 'page': currentPage+1}) }}" title="{{ 'ancre.pagination.suite' |trans({}, 'app') |raw }}">»</a>
{% else %}
<span class="disabled">»</span>
{% endif %}
</li>
</ul>
</div>
{% endif %}