1
0
mirror of https://github.com/janeczku/calibre-web synced 2024-12-25 09:30:31 +00:00

Sort button is correctly visible on list pages

Publisher list is working
This commit is contained in:
Ozzieisaacs 2019-04-22 19:17:23 +02:00
parent 406d1c76c9
commit 9b3b2acb49
2 changed files with 4 additions and 4 deletions

View File

@ -4,7 +4,7 @@
<div class="filterheader hidden-xs hidden-sm">
{% if entries.__len__ %}
{% if not entries[0].sort %}
{% if entries[0][0].sort %}
<button id="sort_name" class="btn btn-success"><b>B,A <-> A B</b></button>
{% endif %}
{% endif %}

View File

@ -447,9 +447,9 @@ def index(page):
title=_(u"Recently Added Books"), page="root")
@web.route('/<data>/<sort>', defaults={'page': 1, 'book_id': 1})
@web.route('/<data>/<sort>/<int:book_id>', defaults={'page': 1})
@web.route('/<data>/<sort>/<int:book_id>/<int:page>')
@web.route('/<data>/<sort>', defaults={'page': 1, 'book_id': "1"})
@web.route('/<data>/<sort>/<book_id>', defaults={'page': 1})
@web.route('/<data>/<sort>/<book_id>/<int:page>')
@login_required_if_no_ano
def books_list(data, sort, book_id, page):
order = [db.Books.timestamp.desc()]