Dockerize Project
This commit is contained in:
commit
e679d02b41
205 changed files with 17941 additions and 0 deletions
23
templates/partials/home/__pagination.html.twig
Executable file
23
templates/partials/home/__pagination.html.twig
Executable file
|
@ -0,0 +1,23 @@
|
|||
{% 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 %}
|
Loading…
Add table
Add a link
Reference in a new issue