23 lines
948 B
Twig
Executable File
23 lines
948 B
Twig
Executable File
{% block pagination %}
|
|
<div class="pagination justify-content-center mt-24" data-bs-theme="dark">
|
|
<ul class="pagination">
|
|
{% if currentPage > 1 %}
|
|
<li class="page-item">
|
|
<a class="page-link" href="{{ path('app_home', {'page': currentPage - 1}) }}">Previous</a>
|
|
</li>
|
|
{% endif %}
|
|
|
|
{% for page in 1..totalPages %}
|
|
<li class="page-item {% if page == currentPage %}disabled{% endif %}">
|
|
<a class="page-link" href="{{ path('app_home', {'page': page}) }}">{{ page }}</a>
|
|
</li>
|
|
{% endfor %}
|
|
|
|
{% if currentPage < totalPages %}
|
|
<li class="page-item">
|
|
<a class="page-link" href="{{ path('app_home', {'page': currentPage + 1}) }}">Next</a>
|
|
</li>
|
|
{% endif %}
|
|
</ul>
|
|
</div>
|
|
{% endblock %} |