diff --git a/src/pyj/book_list/home.pyj b/src/pyj/book_list/home.pyj index 155f11051d..b356b52b3d 100644 --- a/src/pyj/book_list/home.pyj +++ b/src/pyj/book_list/home.pyj @@ -67,6 +67,12 @@ def show_recent_stage2(books): )) if book.cover_name: db.get_file(book, book.cover_name, show_cover.bind(img_id)) + container.appendChild(E.div(style='margin: 1rem 1rem', + create_button( + _('Browse all previously downloaded books…'), + action=def(): + pass + ))) def show_recent(): diff --git a/src/pyj/book_list/local_books.pyj b/src/pyj/book_list/local_books.pyj new file mode 100644 index 0000000000..29d6e2e774 --- /dev/null +++ b/src/pyj/book_list/local_books.pyj @@ -0,0 +1,11 @@ +# vim:fileencoding=utf-8 +# License: GPL v3 Copyright: 2017, Kovid Goyal +from __python__ import hash_literals, bound_methods + +from book_list.ui import set_panel_handler + + +def init(container_id): + pass + +set_panel_handler('local_books', init) diff --git a/src/pyj/book_list/main.pyj b/src/pyj/book_list/main.pyj index 438de52214..bef58aa6a0 100644 --- a/src/pyj/book_list/main.pyj +++ b/src/pyj/book_list/main.pyj @@ -22,6 +22,7 @@ from read_book.ui import ReadUI # Register the various panels import book_list.home # noqa: unused-import import book_list.views # noqa: unused-import +import book_list.local_books # noqa: unused-import import book_list.book_details # noqa: unused-import