{# 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 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 href="{{ path(route, query|merge({(pageParameterName): next})) }}" class="nextLink">></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 %}