First Commit
This commit is contained in:
Executable
+35
@@ -0,0 +1,35 @@
|
||||
{# paginator.twig #}
|
||||
{% if paginator.total_pages > 1 %}
|
||||
<nav aria-label="Paginação" class="my-3">
|
||||
<ul class="pagination justify-content-center">
|
||||
|
||||
{# Previous #}
|
||||
<li class="page-item {% if not paginator.has_prev %}disabled{% endif %}">
|
||||
<a class="page-link"
|
||||
href="{{ paginator.base_url ~ (paginator.current_page - 1) }}"
|
||||
tabindex="-1">
|
||||
Anterior
|
||||
</a>
|
||||
</li>
|
||||
|
||||
{# Page numbers #}
|
||||
{% for page in 1..paginator.total_pages %}
|
||||
<li class="page-item {% if page == paginator.current_page %}active{% endif %}">
|
||||
<a class="page-link"
|
||||
href="{{ paginator.base_url ~ page }}">
|
||||
{{ page }}
|
||||
</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
|
||||
{# Next #}
|
||||
<li class="page-item {% if not paginator.has_next %}disabled{% endif %}">
|
||||
<a class="page-link"
|
||||
href="{{ paginator.base_url ~ (paginator.current_page + 1) }}">
|
||||
Próximo
|
||||
</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</nav>
|
||||
{% endif %}
|
||||
Reference in New Issue
Block a user