mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Start work on custom book list view for the server
This commit is contained in:
parent
32ded939ca
commit
829e6c72a0
20
src/pyj/book_list/custom_list.pyj
Normal file
20
src/pyj/book_list/custom_list.pyj
Normal file
@ -0,0 +1,20 @@
|
||||
# vim:fileencoding=utf-8
|
||||
# License: GPL v3 Copyright: 2017, Kovid Goyal <kovid at kovidgoyal.net>
|
||||
from __python__ import bound_methods, hash_literals
|
||||
|
||||
from gettext import gettext as _
|
||||
|
||||
|
||||
def default_template():
|
||||
return {
|
||||
'cover': True,
|
||||
'comments': False,
|
||||
'comments_fields': ['comments'],
|
||||
'height': '12.5ex',
|
||||
'lines': [
|
||||
_('<b>{title}</b> by {authors}'),
|
||||
_('{series_index} of {series}') + '|||{rating}',
|
||||
'{tags}',
|
||||
_('Date: {timestamp} Published: {pubdate}'),
|
||||
]
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user