templates/front/_blocks/pagination.html.twig line 1

Open in your IDE?
  1. {% if nbPages is defined and nbPages > 1 %}
  2.     <div class="col-md-12 col-sm-12 col-xs-12">
  3.         <ul class="pager">
  4.             <li>
  5.                 {% if currentPage > 1 %}
  6.                     <a href="{{ path('ac_platform_theme', {'slug': slug, 'id': id, 'page': currentPage-1}) }}" title="{{ 'ancre.pagination.retour' |trans({}, 'app') |raw }}">&laquo;</a>
  7.                 {% else %}
  8.                     <span class="disabled">&laquo;</span>
  9.                 {% endif %}
  10.             </li>
  11.             {% for i in 1..nbPages %}
  12.             <li class="hidden-xs {% if currentPage == i %}active{% endif %}"><a href="{{ path('ac_platform_theme', {'slug': slug, 'id': id, 'page': i}) }}">{{ i }}</a></li>
  13.             {% endfor %}
  14.             <li class="hidden-sm hidden-md hidden-lg pl-5 pr-5">Page<br/>{{ currentPage }}/{{ nbPages }}</li>
  15.             <li>
  16.                 {% if currentPage < nbPages %}
  17.                     <a href="{{ path('ac_platform_theme', {'slug': slug, 'id': id, 'page': currentPage+1}) }}" title="{{ 'ancre.pagination.suite' |trans({}, 'app') |raw }}">&raquo;</a>
  18.                 {% else %}
  19.                     <span class="disabled">&raquo;</span>
  20.                 {% endif %}
  21.             </li>
  22.         </ul>
  23.     </div>
  24. {% endif %}