aboutsummaryrefslogtreecommitdiff
path: root/pyAggr3g470r.py
diff options
context:
space:
mode:
authorcedricbonhomme <devnull@localhost>2010-12-07 11:15:45 +0100
committercedricbonhomme <devnull@localhost>2010-12-07 11:15:45 +0100
commit321eb214534d5606f253f834310d3d5576116d26 (patch)
tree8b072e7ed7b36ae998c9e89b210bd2f93776a131 /pyAggr3g470r.py
parentAdded links to Previous and following articles on the description page. (diff)
downloadnewspipe-321eb214534d5606f253f834310d3d5576116d26.tar.gz
newspipe-321eb214534d5606f253f834310d3d5576116d26.tar.bz2
newspipe-321eb214534d5606f253f834310d3d5576116d26.zip
Added images for previous and follinw article.
Diffstat (limited to 'pyAggr3g470r.py')
-rwxr-xr-xpyAggr3g470r.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/pyAggr3g470r.py b/pyAggr3g470r.py
index c97a6861..0c07d971 100755
--- a/pyAggr3g470r.py
+++ b/pyAggr3g470r.py
@@ -83,6 +83,10 @@ path = {'/css/style.css': {'tools.staticfile.on': True, \
'tools.staticfile.filename':utils.path+'/css/img/mark-as-read.png'}, \
'/css/img/check-news.png': {'tools.staticfile.on': True, \
'tools.staticfile.filename':utils.path+'/css/img/check-news.png'}, \
+ '/css/img/previous-article.png': {'tools.staticfile.on': True, \
+ 'tools.staticfile.filename':utils.path+'/css/img/previous-article.png'}, \
+ '/css/img/following-article.png': {'tools.staticfile.on': True, \
+ 'tools.staticfile.filename':utils.path+'/css/img/following-article.png'}, \
'/var/qrcode': {'tools.staticdir.on': True,
'tools.staticdir.dir': os.path.join(utils.path, './var/qrcode')}}
@@ -455,20 +459,20 @@ class Root:
# Description (full content) of the article
description = article.article_description
if description:
- html += description + "\n<br />"
+ html += description + "\n<br /><br />"
else:
- html += "No description available.\n<br />"
+ html += "No description available.\n<br /><br />"
# Previous and following articles
try:
following = feed.articles.values()[feed.articles.keys().index(article_id) - 1]
- html += """<div style="float:right;"><a href="/description/%s:%s" title="%s">Following</a></div>\n""" % \
+ html += """<div style="float:right;"><a href="/description/%s:%s" title="%s"><img src="/css/img/following-article.png" /></a></div>\n""" % \
(feed_id, following.article_id, following.article_title)
except:
pass
try:
previous = feed.articles.values()[feed.articles.keys().index(article_id) + 1]
- html += """<div style="float:left;"><a href="/description/%s:%s" title="%s">Previous</a></div>\n""" % \
+ html += """<div style="float:left;"><a href="/description/%s:%s" title="%s"><img src="/css/img/previous-article.png" /></a></div>\n""" % \
(feed_id, previous.article_id, previous.article_title)
except:
pass
bgstack15