diff options
author | cedricbonhomme <devnull@localhost> | 2010-04-16 10:49:25 +0200 |
---|---|---|
committer | cedricbonhomme <devnull@localhost> | 2010-04-16 10:49:25 +0200 |
commit | 56500eac459950bda51a745b2b9b6e32fb06f676 (patch) | |
tree | 0821a6a49670de7064c354f0cd792d7f08f2f1d6 | |
parent | Release 1.1. Added links for favorites articles on the main page. (diff) | |
download | newspipe-56500eac459950bda51a745b2b9b6e32fb06f676.tar.gz newspipe-56500eac459950bda51a745b2b9b6e32fb06f676.tar.bz2 newspipe-56500eac459950bda51a745b2b9b6e32fb06f676.zip |
Minor CSS improvements.
-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>""" |