From c7faa0dcb24e5285e309e208d93b453d232d9c4d Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Wed, 28 Nov 2012 08:08:00 +0100 Subject: Fix: number of feeds wan no longer displayed in the navigation bar. --- source/pyAggr3g470r.py | 4 ++-- source/templates/index.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'source') 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
-