{% if pageCount > 1 %}
	<ul class="pagination">
		{% if first is defined and current != first %}
			<li class="page-item">
				<a href="{{ path(route, query|merge({(pageParameterName): first})) }}">{% trans %}pagination_first{% endtrans %}</a>
			</li>
		{% endif %}
		{% if previous is defined %}
			<li class="page-item">
				<a href="{{ path(route, query|merge({(pageParameterName): previous})) }}">{% trans %}pagination_prev{% endtrans %}</a>
			</li>
		{% endif %}

		{% for page in pagesInRange %}
			<li class="page-item{% if page == current %} active{% endif %}">
				<a href="{{ path(route, query|merge({(pageParameterName): page})) }}">{{ page }}</a>
			</li>
		{% endfor %}

		{% if next is defined %}
			<li class="page-item">
				<a href="{{ path(route, query|merge({(pageParameterName): next})) }}">{% trans %}pagination_next{% endtrans %}</a>
			</li>
		{% endif %}
		{% if last is defined and current != last %}
			<li class="page-item">
				<a href="{{ path(route, query|merge({(pageParameterName): last})) }}">{% trans %}pagination_last{% endtrans %}</a>
			</li>
		{% endif %}
	</ul>
{% endif %}
