aboutsummaryrefslogtreecommitdiff
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
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.
-rw-r--r--css/img/following-article.pngbin0 -> 989 bytes
-rw-r--r--css/img/heart-32x32.pngbin0 -> 2084 bytes
-rw-r--r--css/img/previous-article.pngbin0 -> 997 bytes
-rw-r--r--css/img/unread.pngbin0 -> 1580 bytes
-rwxr-xr-xpyAggr3g470r.py12
5 files changed, 8 insertions, 4 deletions
diff --git a/css/img/following-article.png b/css/img/following-article.png
new file mode 100644
index 00000000..0e59e459
--- /dev/null
+++ b/css/img/following-article.png
Binary files differ
diff --git a/css/img/heart-32x32.png b/css/img/heart-32x32.png
new file mode 100644
index 00000000..09b01cb5
--- /dev/null
+++ b/css/img/heart-32x32.png
Binary files differ
diff --git a/css/img/previous-article.png b/css/img/previous-article.png
new file mode 100644
index 00000000..fcd9bfd8
--- /dev/null
+++ b/css/img/previous-article.png
Binary files differ
diff --git a/css/img/unread.png b/css/img/unread.png
new file mode 100644
index 00000000..d3a641c7
--- /dev/null
+++ b/css/img/unread.png
Binary files differ
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