{# default Sliding pagination control implementation #}
{% if pageCount > 1 %}
<div class="pagination">
{% if first is defined and current != first %}
<span class="first">
<a href="{{ path(route, query|merge({(pageParameterName): first})) }}"><<</a>
</span>
{% endif %}
{% if previous is defined %}
<span class="previous">
<a rel="prev" href="{{ path(route, query|merge({(pageParameterName): previous})) }}"><</a>
</span>
{% endif %}
{% for page in pagesInRange %}
{% if page != current %}
<span class="page">
<a href="{{ path(route, query|merge({(pageParameterName): page})) }}">{{ page }}</a>
</span>
{% else %}
<span class="current">{{ page }}</span>
{% endif %}
{% endfor %}
{% if next is defined %}
<span class="next">
<a rel="next" href="{{ path(route, query|merge({(pageParameterName): next})) }}">></a>
</span>
{% endif %}
{% if last is defined and current != last %}
<span class="last">
<a href="{{ path(route, query|merge({(pageParameterName): last})) }}">>></a>
</span>
{% endif %}
</div>
{% endif %}