templates/components/pagination/pagination.html.twig line 1

Open in your IDE?
  1. <div style="padding:10px;">
  2.     <ul class="pagination">
  3.         {% if pageCount > 1 %}
  4.             {% if previous is defined %}
  5.                 <li class="paginate_button page-item">
  6.                     <a href="{{ path(route, query|merge({(pageParameterName): previous})) }}" class="page-link">PrĂ©cedent</a>
  7.                 </li>
  8.             {% endif %}
  9.             {% for page in pagesInRange %}
  10.                 {% if page != current %}
  11.                     <li class="paginate_button page-item">
  12.                         <a href="{{ path(route, query|merge({(pageParameterName): page})) }}" class="page-link">{{ page }}</a>
  13.                     </li>
  14.                 {% else %}
  15.                     <li class="paginate_button page-item active">
  16.                         <a class="page-link">{{ page }}</a>
  17.                     </li>
  18.                 {% endif %}
  19.             {% endfor %}
  20.             {% if next is defined %}
  21.                 <li class="paginate_button page-item">
  22.                     <a href="{{ path(route, query|merge({(pageParameterName): next})) }}" class="page-link">Suivant</a>
  23.                 </li>
  24.             {% endif %}
  25.         {% endif %}
  26.     </ul>
  27. </div>