<nav aria-label="Pagination">
<ul class="pagination justify-content-center">
{% if(predator.previous is defined) %}
<li class="page-item">
<a class="page-link prev" href="{{ pimcore_url({'page': predator.previous}) }}">Previous
</a>
</li>
{% endif %}
{% for page in predator.pagesInRange %}
{% if(predator.current == page) %}
<li class="page-item active" aria-current="page">
<span class="page-link">
{{ page }}
<span class="sr-only">(current)</span>
</span>
</li>
{% else %}
<li class="page-item"><a class="page-link" href="{{ pimcore_url({'page': page}) }}">{{ page }}</a></li>
{% endif %}
{% endfor %}
{% if(predator.next is defined) %}
<li class="page-item">
<a class="page-link next" href="{{ pimcore_url({'page': predator.next}) }}">Next</a>
</li>
{% endif %}
</ul>
</nav>