mirror of
https://github.com/janeczku/calibre-web
synced 2024-11-04 12:00:17 +00:00
Add "Previous" pagination button
I imagine these buttons are still in use when JavaScript is disabled or not loading.
This commit is contained in:
parent
0afc8f94da
commit
5465b8e8b7
@ -181,6 +181,10 @@
|
||||
{% block body %}{% endblock %}
|
||||
{% if pagination and (pagination.has_next or pagination.has_prev) %}
|
||||
<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() %}
|
||||
{% if page %}
|
||||
{% if page != pagination.page %}
|
||||
@ -194,7 +198,7 @@
|
||||
{% endfor %}
|
||||
{% if pagination.has_next %}
|
||||
<a class="next" href="{{ url_for_other_page(pagination.page + 1)
|
||||
}}">Next »</a>
|
||||
}}">{{_('Next')}} »</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
Loading…
Reference in New Issue
Block a user