diff options
author | Cédric Bonhomme <kimble.mandel@gmail.com> | 2012-11-28 08:08:00 +0100 |
---|---|---|
committer | Cédric Bonhomme <kimble.mandel@gmail.com> | 2012-11-28 08:08:00 +0100 |
commit | c7faa0dcb24e5285e309e208d93b453d232d9c4d (patch) | |
tree | 338f9c6135fab4c0fade70d78aa595aa750fa3e3 /source | |
parent | Some improvements to the CSS. (diff) | |
download | newspipe-c7faa0dcb24e5285e309e208d93b453d232d9c4d.tar.gz newspipe-c7faa0dcb24e5285e309e208d93b453d232d9c4d.tar.bz2 newspipe-c7faa0dcb24e5285e309e208d93b453d232d9c4d.zip |
Fix: number of feeds wan no longer displayed in the navigation bar.
Diffstat (limited to 'source')
-rwxr-xr-x | source/pyAggr3g470r.py | 4 | ||||
-rw-r--r-- | source/templates/index.html | 2 |
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 = "" %> |