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