aboutsummaryrefslogtreecommitdiff
path: root/pyAggr3g470r.py
diff options
context:
space:
mode:
authorcedricbonhomme <devnull@localhost>2010-07-15 14:49:02 +0200
committercedricbonhomme <devnull@localhost>2010-07-15 14:49:02 +0200
commite16710640bd59f09e38986da78b29dc0f2fbad2e (patch)
treea248d890ee3b303a4052e29ec501172beb5a0199 /pyAggr3g470r.py
parentMinor bug fix when the field updated_parsed for an article does not exists. (diff)
downloadnewspipe-e16710640bd59f09e38986da78b29dc0f2fbad2e.tar.gz
newspipe-e16710640bd59f09e38986da78b29dc0f2fbad2e.tar.bz2
newspipe-e16710640bd59f09e38986da78b29dc0f2fbad2e.zip
CSS Improvement. Now the menu (list of feeds) is fixed to the top. The menu remains accessible when you scroll the web page.
Diffstat (limited to 'pyAggr3g470r.py')
-rwxr-xr-xpyAggr3g470r.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/pyAggr3g470r.py b/pyAggr3g470r.py
index 4b361465..1903eae6 100755
--- a/pyAggr3g470r.py
+++ b/pyAggr3g470r.py
@@ -155,13 +155,14 @@ class Root:
html += "<hr />\n"
html += self.create_list_of_feeds()
html += "</div>\n"
+
return html
def create_list_of_feeds(self):
"""
Create the list of feeds.
"""
- html = """Your feeds (%s):<br />\n""" % len(self.articles.keys())
+ html = """<div class="nav_container">Your feeds (%s):<br />\n""" % len(self.articles.keys())
for rss_feed_id in self.feeds.keys():
if self.feeds[rss_feed_id][1] != 0:
# not readed articles are in bold
@@ -170,14 +171,15 @@ class Root:
else:
not_read_begin = ""
not_read_end = ""
- html += """<a href="/#%s">%s</a> (<a href="/unread/%s"
- title="Unread article(s)">%s%s%s</a> / %s)<br />\n""" % \
+ html += """<div><a href="/#%s">%s</a> (<a href="/unread/%s"
+ title="Unread article(s)">%s%s%s</a> / %s)</div>""" % \
(rss_feed_id.encode('utf-8'), \
self.feeds[rss_feed_id][3].encode('utf-8'), \
rss_feed_id, not_read_begin, \
self.feeds[rss_feed_id][1], not_read_end, \
self.feeds[rss_feed_id][0])
- return html
+
+ return "</div>" + html
def management(self, word_size=6):
bgstack15