Fix #7402 (Add author field to generated metadata page)

This commit is contained in:
Kovid Goyal 2010-11-04 18:12:35 -06:00
parent 3e12000bc4
commit df089451c5
3 changed files with 17 additions and 1 deletions

View File

@ -39,7 +39,16 @@
.cbj_title {
font-size: x-large;
text-align: center;
}
}
/*
** Author
*/
.cbj_author {
font-size: medium;
text-align: center;
margin-bottom: 1ex;
}
/*
** Table containing Series, Publication Year, Rating and Tags

View File

@ -7,6 +7,7 @@
<body>
<div class="cbj_banner">
<div class="cbj_title">{title}</div>
<div class="cbj_author">{author}</div>
<table class="cbj_header">
<tr class="cbj_series">
<td class="cbj_label">{series_label}:</td>

View File

@ -143,11 +143,17 @@ def render_jacket(mi, output_profile,
if comments:
comments = comments_to_html(comments)
try:
author = mi.format_authors()
except:
author = ''
def generate_html(comments):
args = dict(xmlns=XHTML_NS,
title_str=title_str,
css=css,
title=title,
author=author,
pubdate_label=_('Published'), pubdate=pubdate,
series_label=_('Series'), series=series,
rating_label=_('Rating'), rating=rating,