mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Content server: Book details page: Do not display empty rows for undefined dates
This commit is contained in:
parent
949ac56a5c
commit
a0a3f89820
@ -259,7 +259,9 @@ def render_metadata(mi, table, book_id): # {{{
|
|||||||
def process_datetime(field, fm, name, val):
|
def process_datetime(field, fm, name, val):
|
||||||
if val:
|
if val:
|
||||||
fmt = interface_data['gui_' + field + '_display_format'] or (fm['display'] or {}).date_format
|
fmt = interface_data['gui_' + field + '_display_format'] or (fm['display'] or {}).date_format
|
||||||
add_row(name, format_date(val, fmt))
|
val = format_date(val, fmt)
|
||||||
|
if val:
|
||||||
|
add_row(name, val)
|
||||||
|
|
||||||
def process_series(field, fm, name, val):
|
def process_series(field, fm, name, val):
|
||||||
if val:
|
if val:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user