{# /** * @file * Twitter Bootstrap v3 Sliding pagination control implementation. * * View that can be used with the pagination module * from the Twitter Bootstrap CSS Toolkit * http://getbootstrap.com/components/#pagination * * @author Pablo Díez * @author Jan Sorgalla * @author Artem Ponomarenko * @author Artem Zabelin */ #} {% if pageCount > 1 %}
    {% if previous is defined %}
  • {% else %}
  • « {{ 'Previous'|trans }}
  • {% endif %} {% if startPage > 1 %}
  • 1
  • {% if startPage == 3 %}
  • 2
  • {% elseif startPage != 2 %}
  • {% endif %} {% endif %} {% for page in pagesInRange %} {% if page != current %}
  • {{ page }}
  • {% else %}
  • {{ page }}
  • {% endif %} {% endfor %} {% if pageCount > endPage %} {% if pageCount > (endPage + 1) %} {% if pageCount > (endPage + 2) %}
  • {% else %}
  • {{ pageCount -1 }}
  • {% endif %} {% endif %}
  • {{ pageCount }}
  • {% endif %} {% if next is defined %}
  • {% else %}
  • {{ 'Next'|trans }} »
  • {% endif %}
{% endif %}