diff options
Diffstat (limited to 'pyAggr3g470r.py')
-rwxr-xr-x | pyAggr3g470r.py | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/pyAggr3g470r.py b/pyAggr3g470r.py index c95d90a7..8cf4d70e 100755 --- a/pyAggr3g470r.py +++ b/pyAggr3g470r.py @@ -117,8 +117,8 @@ class Root: "<br />\n" html += "<br />\n" - html += """<a href="/all_articles/%s">All articles</a>""" % (rss_feed_id,) - html += """ <a href="/mark_as_read/Feed_FromMainPage:%s">Mark all as read</a>""" % (rss_feed_id,) + html += """<a href="/all_articles/%s">All articles</a> """ % (rss_feed_id,) + html += """ <a href="/mark_as_read/Feed_FromMainPage:%s">Mark all as read</a>""" % (rss_feed_id,) if self.feeds[rss_feed_id][1] != 0: html += """ <a href="/unread/%s" title="Unread article(s)" >Unread article(s) (%s)</a>""" % (rss_feed_id, \ @@ -440,12 +440,17 @@ class Root: not_read_begin = "" not_read_end = "" + if article[7] == "1": + like = """ <img src="/css/img/heart.png" title="I like this article!" />""" + else: + like = "" + html += article[1].encode('utf-8') + \ " - " + not_read_begin + \ """<a href="/description/%s:%s" rel="noreferrer" target="_blank">%s</a>""" % \ (feed_id, article[0].encode('utf-8'), \ utils.remove_html_tags(article[2].encode('utf-8'))) + \ - not_read_end + \ + not_read_end + like + \ "<br />\n" html += """\n<h4><a href="/">All feeds</a></h4>""" |