From 321eb214534d5606f253f834310d3d5576116d26 Mon Sep 17 00:00:00 2001 From: cedricbonhomme Date: Tue, 7 Dec 2010 11:15:45 +0100 Subject: Added images for previous and follinw article. --- css/img/following-article.png | Bin 0 -> 989 bytes css/img/heart-32x32.png | Bin 0 -> 2084 bytes css/img/previous-article.png | Bin 0 -> 997 bytes css/img/unread.png | Bin 0 -> 1580 bytes pyAggr3g470r.py | 12 ++++++++---- 5 files changed, 8 insertions(+), 4 deletions(-) create mode 100644 css/img/following-article.png create mode 100644 css/img/heart-32x32.png create mode 100644 css/img/previous-article.png create mode 100644 css/img/unread.png diff --git a/css/img/following-article.png b/css/img/following-article.png new file mode 100644 index 00000000..0e59e459 Binary files /dev/null and b/css/img/following-article.png differ diff --git a/css/img/heart-32x32.png b/css/img/heart-32x32.png new file mode 100644 index 00000000..09b01cb5 Binary files /dev/null and b/css/img/heart-32x32.png differ diff --git a/css/img/previous-article.png b/css/img/previous-article.png new file mode 100644 index 00000000..fcd9bfd8 Binary files /dev/null and b/css/img/previous-article.png differ diff --git a/css/img/unread.png b/css/img/unread.png new file mode 100644 index 00000000..d3a641c7 Binary files /dev/null and b/css/img/unread.png 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
" + html += description + "\n

" else: - html += "No description available.\n
" + html += "No description available.\n

" # Previous and following articles try: following = feed.articles.values()[feed.articles.keys().index(article_id) - 1] - html += """
Following
\n""" % \ + html += """
\n""" % \ (feed_id, following.article_id, following.article_title) except: pass try: previous = feed.articles.values()[feed.articles.keys().index(article_id) + 1] - html += """
Previous
\n""" % \ + html += """
\n""" % \ (feed_id, previous.article_id, previous.article_title) except: pass -- cgit