{# default Sliding pagination control implementation #}
{% if pageCount > 1 %}
<ul class="pagination">
{% if first is defined and current != first %}
<li class="page-item">
<a class="page-link" aria-label="Previous" href="{{ path(route, query|merge({(pageParameterName): first})) }}">
<span aria-hidden="true"><<</span>
</a>
</li>
{% endif %}
{% if previous is defined %}
<li class="page-item">
<a class="page-link" aria-label="Previous" rel="prev" href="{{ path(route, query|merge({(pageParameterName): previous})) }}">
<span aria-hidden="true"><</span>
{# <span class="sr-only">{{ "Previous" | trans }}</span>#}
</a>
</li>
{% endif %}
{% for page in pagesInRange %}
{% if page != current %}
<li class="page-item">
<a class="page-link" href="{{ path(route, query|merge({(pageParameterName): page})) }}">{{ page }}</a>
</li>
{% else %}
<li class="page-item active">
<a class="page-link" href="#">{{ page }}</a>
</li>
{% endif %}
{% endfor %}
{% if next is defined %}
<li class="page-item">
<a class="page-link" href="{{ path(route, query|merge({(pageParameterName): next})) }}">
<span aria-hidden="true">></span>
{# <span class="sr-only">{{ "Next" | trans }}</span>#}
</a>
</li>
{% endif %}
{% if last is defined and current != last %}
<li class="last page-item">
<a class="page-link" href="{{ path(route, query|merge({(pageParameterName): last})) }}">>></a>
</li>
{% endif %}
</ul>
{% endif %}