mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 07:53:09 +02:00
Start work on local books view
This commit is contained in:
parent
82fed916d0
commit
3bc756bfda
3 changed files with 18 additions and 0 deletions
|
|
@ -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():
|
||||
|
|
|
|||
11
src/pyj/book_list/local_books.pyj
Normal file
11
src/pyj/book_list/local_books.pyj
Normal 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)
|
||||
|
|
@ -22,6 +22,7 @@
|
|||
# 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
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue