- Wordpress improvements - Multi-language support
- Styling of the administrative interface in line with askeveai.com website
This commit is contained in:
@@ -220,21 +220,33 @@
|
||||
{% macro render_pagination(pagination, endpoint) %}
|
||||
<nav aria-label="Page navigation">
|
||||
<ul class="pagination">
|
||||
<!-- Previous Button -->
|
||||
<li class="page-item {{ 'disabled' if not pagination.has_prev }}">
|
||||
<a class="page-link" href="{{ url_for(endpoint, page=pagination.prev_num) if pagination.has_prev else 'javascript:;' }}" tabindex="-1">
|
||||
<i class="fa fa-angle-left"></i>
|
||||
<span class="sr-only">Previous</span>
|
||||
<span class="material-symbols-outlined">keyboard_double_arrow_left</span>
|
||||
{# <span class="sr-only">Previous</span>#}
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<!-- Page Number Buttons -->
|
||||
{% for page in pagination.iter_pages(left_edge=1, left_current=2, right_current=3, right_edge=1) %}
|
||||
<li class="page-item {{ 'active' if page == pagination.page }}">
|
||||
<a class="page-link" href="{{ url_for(endpoint, page=page) }}">{{ page }} {% if page == pagination.page %}<span class="sr-only">(current)</span>{% endif %}</a>
|
||||
<a class="page-link" href="{{ url_for(endpoint, page=page) }}">
|
||||
{% if page == pagination.page %}
|
||||
<span class="material-symbols-outlined">target</span>
|
||||
{# <span class="sr-only">(current)</span>#}
|
||||
{% else %}
|
||||
{{ page }}
|
||||
{% endif %}
|
||||
</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
|
||||
<!-- Next Button -->
|
||||
<li class="page-item {{ 'disabled' if not pagination.has_next }}">
|
||||
<a class="page-link" href="{{ url_for(endpoint, page=pagination.next_num) if pagination.has_next else 'javascript:;' }}">
|
||||
<i class="fa fa-angle-right"></i>
|
||||
<span class="sr-only">Next</span>
|
||||
<span class="material-symbols-outlined">keyboard_double_arrow_right</span>
|
||||
{# <span class="sr-only">Next</span>#}
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
Reference in New Issue
Block a user