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

@ -41,6 +41,15 @@
text-align: center; text-align: center;
} }
/*
** Author
*/
.cbj_author {
font-size: medium;
text-align: center;
margin-bottom: 1ex;
}
/* /*
** Table containing Series, Publication Year, Rating and Tags ** Table containing Series, Publication Year, Rating and Tags
*/ */

View File

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

View File

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