vendor/score/base/src/Resources/views/Default/pager.html.twig line 1

Open in your IDE?
  1. {% if pager.lastPage > 1 %}
  2.     <ul class="pagination pagination-inside-transparent pagination-sm justify-content-center">
  3.         {% if app.request.get('p') > 1 %}  
  4.             <li class="page-item">
  5.                 <a class="page-link" href="{{pager.previousPageLink}}&p={{pager.previousPage}}" tabindex="-1" aria-disabled="true">
  6.                     {{ 'pager.previous'|trans }}
  7.                 </a>
  8.             </li>
  9.         {% endif %}
  10.         {% for page_number in pager.pages %}
  11.             <li class="page-item {{ app.request.get('p') == page_number ? 'active' : '' }}"  >
  12.                 <a class="page-link"  href="{{pager.getNumberPageLink(page_number)}}">
  13.                     {{page_number}}
  14.                 </a> 
  15.             </li>
  16.         {% endfor %}
  17.         
  18.         {% if pager.lastPage > pager.pages|length %}
  19.         <li class="page-item"><a class="page-link" href="#">...</a></li>
  20.         <li class="page-item"><a class="page-link" href="{{pager.lastPageLink}}" > {{ pager.lastPage }}</a></li>
  21.         {% endif %}
  22.         {% if app.request.get('p') != pager.lastPage %}  
  23.             <li class="page-item"><a class="page-link"  href="{{pager.nextPageLink}}"> {{ 'pager.next'|trans }}</a></li>
  24.             {% endif %}
  25.     </ul>
  26. {% endif %}