templates/themes/backend/metrica/core/pagination.html.twig line 1

Open in your IDE?
  1. {# default Sliding pagination control implementation #}
  2. {% if pageCount > 1 %}
  3.     <ul class="pagination">
  4.         {% if first is defined and current != first %}
  5.             <li class="page-item">
  6.                 <a class="page-link" aria-label="Previous" href="{{ path(route, query|merge({(pageParameterName): first})) }}">
  7.                     <span aria-hidden="true">&lt;&lt;</span>
  8.                 </a>
  9.             </li>
  10.         {% endif %}
  11.         {% if previous is defined %}
  12.             <li class="page-item">
  13.                 <a class="page-link" aria-label="Previous" rel="prev" href="{{ path(route, query|merge({(pageParameterName): previous})) }}">
  14.                     <span aria-hidden="true">&lt;</span>
  15. {#                    <span class="sr-only">{{ "Previous" | trans }}</span>#}
  16.                 </a>
  17.             </li>
  18.         {% endif %}
  19.         {% for page in pagesInRange %}
  20.             {% if page != current %}
  21.                 <li class="page-item">
  22.                     <a class="page-link" href="{{ path(route, query|merge({(pageParameterName): page})) }}">{{ page }}</a>
  23.                 </li>
  24.             {% else %}
  25.                 <li class="page-item active">
  26.                     <a class="page-link" href="#">{{ page }}</a>
  27.                 </li>
  28.             {% endif %}
  29.         {% endfor %}
  30.         {% if next is defined %}
  31.             <li class="page-item">
  32.                 <a class="page-link" href="{{ path(route, query|merge({(pageParameterName): next})) }}">
  33.                     <span aria-hidden="true">&gt;</span>
  34. {#                    <span class="sr-only">{{ "Next" | trans }}</span>#}
  35.                 </a>
  36.             </li>
  37.         {% endif %}
  38.         {% if last is defined and current != last %}
  39.             <li class="last page-item">
  40.                 <a class="page-link" href="{{ path(route, query|merge({(pageParameterName): last})) }}">&gt;&gt;</a>
  41.             </li>
  42.         {% endif %}
  43.     </ul>
  44. {% endif %}