Merge remote-tracking branch 'adv/previous-pagination'
This commit is contained in:
commit
cd2e27d7ad
@ -181,6 +181,10 @@
|
|||||||
{% block body %}{% endblock %}
|
{% block body %}{% endblock %}
|
||||||
{% if pagination and (pagination.has_next or pagination.has_prev) %}
|
{% if pagination and (pagination.has_next or pagination.has_prev) %}
|
||||||
<div class="pagination">
|
<div class="pagination">
|
||||||
|
{% if pagination.has_prev %}
|
||||||
|
<a class="previous" href="{{ url_for_other_page(pagination.page - 1)
|
||||||
|
}}">« {{_('Previous')}}</a>
|
||||||
|
{% endif %}
|
||||||
{% for page in pagination.iter_pages() %}
|
{% for page in pagination.iter_pages() %}
|
||||||
{% if page %}
|
{% if page %}
|
||||||
{% if page != pagination.page %}
|
{% if page != pagination.page %}
|
||||||
@ -194,7 +198,7 @@
|
|||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% if pagination.has_next %}
|
{% if pagination.has_next %}
|
||||||
<a class="next" href="{{ url_for_other_page(pagination.page + 1)
|
<a class="next" href="{{ url_for_other_page(pagination.page + 1)
|
||||||
}}">Next »</a>
|
}}">{{_('Next')}} »</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
Loading…
Reference in New Issue
Block a user