Start work on local books view

This commit is contained in:
Kovid Goyal 2017-02-21 14:52:31 +05:30
parent 82fed916d0
commit 3bc756bfda
3 changed files with 18 additions and 0 deletions

View File

@ -67,6 +67,12 @@ def show_recent_stage2(books):
)) ))
if book.cover_name: if book.cover_name:
db.get_file(book, book.cover_name, show_cover.bind(img_id)) 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(): def show_recent():

View File

@ -0,0 +1,11 @@
# vim:fileencoding=utf-8
# License: GPL v3 Copyright: 2017, Kovid Goyal <kovid at kovidgoyal.net>
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)

View File

@ -22,6 +22,7 @@ from read_book.ui import ReadUI
# Register the various panels # Register the various panels
import book_list.home # noqa: unused-import import book_list.home # noqa: unused-import
import book_list.views # 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 import book_list.book_details # noqa: unused-import