templates/content/pagination.html.twig line 1

Open in your IDE?
  1. <nav aria-label="Pagination">
  2.     <ul class="pagination justify-content-center">
  3.         {%  if(predator.previous is defined) %}
  4.             <li class="page-item">
  5.                 <a class="page-link prev" href="{{  pimcore_url({'page': predator.previous}) }}">Previous
  6.                 </a>
  7.             </li>
  8.         {%  endif %}
  9.         {%  for page in predator.pagesInRange %}
  10.             {%  if(predator.current == page) %}
  11.                 <li class="page-item active" aria-current="page">
  12.                                   <span class="page-link">
  13.                                     {{  page }}
  14.                                     <span class="sr-only">(current)</span>
  15.                                   </span>
  16.                 </li>
  17.             {%  else %}
  18.                 <li class="page-item"><a class="page-link" href="{{  pimcore_url({'page': page}) }}">{{ page }}</a></li>
  19.             {%  endif %}
  20.         {% endfor %}
  21.         {%  if(predator.next is defined) %}
  22.             <li class="page-item">
  23.                 <a class="page-link next" href="{{  pimcore_url({'page': predator.next}) }}">Next</a>
  24.             </li>
  25.         {%  endif %}
  26.     </ul>
  27. </nav>