aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--css/img/tuxrss.pngbin21798 -> 6879 bytes
-rwxr-xr-xcss/style.css9
-rwxr-xr-xpyAggr3g470r.py10
3 files changed, 12 insertions, 7 deletions
diff --git a/css/img/tuxrss.png b/css/img/tuxrss.png
index b432050c..d4d38473 100644
--- a/css/img/tuxrss.png
+++ b/css/img/tuxrss.png
Binary files differ
diff --git a/css/style.css b/css/style.css
index c4316437..41a25d99 100755
--- a/css/style.css
+++ b/css/style.css
@@ -135,7 +135,6 @@ hr {
margin: 1em 0em;
}
-/* Navigation bars */
#heading {
position: absolute;
@@ -145,6 +144,11 @@ hr {
z-index: 1;
}
+/* Navigation bars */
+.nav_container { position:fixed; top:200px; right:60px; margin:0px; padding:0px; white-space:nowrap; z-index:11; clear:both;}
+.nav_container.horizontal { position:absolute; white-space:normal; z-index:25; width:670px; }
+.nav_container.horizontal div { float:right; padding-right:10px; }
+
#nav {
position: absolute;
top: 0px;
@@ -337,5 +341,4 @@ blockquote.right {
max-height: 300px;
overflow: scroll;
margin-top: 0.5em;
-}
-
+} \ No newline at end of file
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