diff options
author | cedricbonhomme <devnull@localhost> | 2010-02-27 01:01:31 +0100 |
---|---|---|
committer | cedricbonhomme <devnull@localhost> | 2010-02-27 01:01:31 +0100 |
commit | 96737318bee587d1803f6899dfe8166239d48819 (patch) | |
tree | 2956ad9d683b8fc4702d41cde8f7465b8f15ee31 /pyAggr3g470r.py | |
parent | Better HTML output. (diff) | |
download | newspipe-96737318bee587d1803f6899dfe8166239d48819.tar.gz newspipe-96737318bee587d1803f6899dfe8166239d48819.tar.bz2 newspipe-96737318bee587d1803f6899dfe8166239d48819.zip |
Minor enhancement.
Diffstat (limited to 'pyAggr3g470r.py')
-rw-r--r-- | pyAggr3g470r.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/pyAggr3g470r.py b/pyAggr3g470r.py index a359cdb6..200506bb 100644 --- a/pyAggr3g470r.py +++ b/pyAggr3g470r.py @@ -322,8 +322,7 @@ class Root: html += """Your feeds (%s):<br />\n""" % len(self.articles.keys()) for rss_feed_id in self.articles.keys(): - html += """<a href="/#%s">%s</a> (<a href="/unread/%s" - title="Unread article(s)">%s</a> / %s)<br />\n""" % \ + html += """<a href="/#%s">%s</a> (<a href="/unread/%s" title="Unread article(s)">%s</a> / %s)<br />\n""" % \ (rss_feed_id.encode('utf-8'), \ self.feeds[rss_feed_id][3].encode('utf-8'), \ rss_feed_id, self.feeds[rss_feed_id][1], \ @@ -370,9 +369,11 @@ class Root: for article in self.articles[rss_feed_id]: if article[5] == "0": html += article[1].encode('utf-8') + \ - """ - <a href="/description/%s" rel="noreferrer" target="_blank">%s</a>""" % \ - (article[0].encode('utf-8'), article[2].encode('utf-8')) + \ - "<br />\n" + """ - <a href="/description/%s" rel="noreferrer" target="_blank">%s</a> + from <i><a href="%s">%s</a></i><br />\n""" % \ + (article[0].encode('utf-8'), article[2].encode('utf-8'), \ + self.feeds[rss_feed_id][5].encode('utf-8'), \ + self.feeds[rss_feed_id][3].encode('utf-8')) html += """<hr />\n<a href="/mark_as_read/All:">Mark articles as read</a>\n""" else: html += """<h1>Unread article(s) of the feed <a href="/all_articles/%s">%s</a></h1> |