mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 08:23:10 +02:00
News download: "downloaded from" for touchscreens
News download: Add the "downloaded from" link at the bottom of every article when using a touchscreen output profile (like the Tablet profile).
This commit is contained in:
parent
8020f489ca
commit
adcc1739a6
1 changed files with 8 additions and 0 deletions
|
|
@ -387,6 +387,14 @@ def _generate(self, bottom, feed, art, number_of_articles_in_feed,
|
|||
navbar_t = TABLE(CLASS('touchscreen_navbar'))
|
||||
navbar_tr = TR()
|
||||
|
||||
if bottom and not url.startswith('file://'):
|
||||
navbar.append(HR())
|
||||
text = 'This article was downloaded by '
|
||||
p = PT(text, STRONG(__appname__), A(url, href=url),
|
||||
style='text-align:left; max-width: 100%; overflow: hidden;')
|
||||
p[0].tail = ' from '
|
||||
navbar.append(p)
|
||||
navbar.append(BR())
|
||||
# | Previous
|
||||
if art > 0:
|
||||
link = A(CLASS('article_link'),_('Previous'),href='%s../article_%d/index.html'%(prefix, art-1))
|
||||
|
|
|
|||
Loading…
Reference in a new issue