From 829e6c72a0ff9341662169e741f2b2895546614e Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 13 Jul 2017 20:04:24 +0530 Subject: [PATCH] Start work on custom book list view for the server --- src/pyj/book_list/custom_list.pyj | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 src/pyj/book_list/custom_list.pyj diff --git a/src/pyj/book_list/custom_list.pyj b/src/pyj/book_list/custom_list.pyj new file mode 100644 index 0000000000..7f5f4a13cb --- /dev/null +++ b/src/pyj/book_list/custom_list.pyj @@ -0,0 +1,20 @@ +# vim:fileencoding=utf-8 +# License: GPL v3 Copyright: 2017, Kovid Goyal +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': [ + _('{title} by {authors}'), + _('{series_index} of {series}') + '|||{rating}', + '{tags}', + _('Date: {timestamp} Published: {pubdate}'), + ] + }