GwR revisions

This commit is contained in:
GRiker 2010-06-12 11:27:10 -06:00
parent 48458ac787
commit ea2d2139c9

View File

@ -279,17 +279,33 @@ class TouchscreenFeedTemplate(Template):
if not getattr(article, 'downloaded', False): if not getattr(article, 'downloaded', False):
continue continue
tr = TR() tr = TR()
td = TD(
A(article.title, CLASS('summary_headline','calibre_rescale_120', if True:
href=article.url)) div_td = DIV(
) A(article.title, CLASS('summary_headline','calibre_rescale_120',
if article.author: href=article.url)),
td.append(DIV(article.author, style="display:inline-block")
CLASS('summary_byline', 'calibre_rescale_100'))) if article.author:
if article.summary: div_td.append(DIV(article.author,
td.append(DIV(cutoff(article.text_summary), CLASS('summary_byline', 'calibre_rescale_100')))
CLASS('summary_text', 'calibre_rescale_100'))) if article.summary:
tr.append(td) div_td.append(DIV(cutoff(article.text_summary),
CLASS('summary_text', 'calibre_rescale_100')))
tr.append(TD(div_td))
else:
td = TD(
A(article.title, CLASS('summary_headline','calibre_rescale_120',
href=article.url))
)
if article.author:
td.append(DIV(article.author,
CLASS('summary_byline', 'calibre_rescale_100')))
if article.summary:
td.append(DIV(cutoff(article.text_summary),
CLASS('summary_text', 'calibre_rescale_100')))
tr.append(td)
toc.append(tr) toc.append(tr)
div.append(toc) div.append(toc)