diff options
-rwxr-xr-x | css/style.css | 8 | ||||
-rwxr-xr-x | pyAggr3g470r.py | 11 |
2 files changed, 14 insertions, 5 deletions
diff --git a/css/style.css b/css/style.css index 67537a82..46264279 100755 --- a/css/style.css +++ b/css/style.css @@ -12,8 +12,7 @@ html, body { body { text-align: justify; - font: normal .8em/1.5em Cambria, Georgia, "Trebuchet MS", Verdana, sans-serif; - + font: 400 0.85em Cambria, Georgia, "Trebuchet MS", Verdana, sans-serif; } code, pre { @@ -109,6 +108,11 @@ li { a:link, a:visited { color: #003399; + text-decoration:none +} + +a:hover { + color: blue; } dt { 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>""" |