aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsource/pyAggr3g470r.py4
-rw-r--r--source/templates/index.html2
2 files changed, 3 insertions, 3 deletions
diff --git a/source/pyAggr3g470r.py b/source/pyAggr3g470r.py
index f967fced..5d9fc2f3 100755
--- a/source/pyAggr3g470r.py
+++ b/source/pyAggr3g470r.py
@@ -149,8 +149,8 @@ class pyAggr3g470r(object):
[""])[0])
tmpl = lookup.get_template("index.html")
- return tmpl.render(feeds=feeds, mongo=self.mongo, nb_favorites=nb_favorites, \
- nb_unread_articles=nb_unread_articles, \
+ return tmpl.render(feeds=feeds, nb_feeds=len(feeds), mongo=self.mongo, \
+ nb_favorites=nb_favorites, nb_unread_articles=nb_unread_articles, \
nb_mail_notifications=nb_mail_notifications)
index.exposed = True
diff --git a/source/templates/index.html b/source/templates/index.html
index 17f05b57..c17f0e2d 100644
--- a/source/templates/index.html
+++ b/source/templates/index.html
@@ -8,7 +8,7 @@ import utils
<input type="search" name="query" value="" placeholder="Search articles" maxlength=2048 autocomplete="on">
</form>
<hr />
- <div class="nav_container">Your feeds (%s):<br />
+ <div class="nav_container">Your feeds (${nb_feeds}):<br />
<%
html = ""
%>
bgstack15