diff options
Diffstat (limited to 'source')
-rwxr-xr-x | source/pyAggr3g470r.py | 4 | ||||
-rw-r--r-- | source/templates/base.html | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/source/pyAggr3g470r.py b/source/pyAggr3g470r.py index a399a23d..3f5132df 100755 --- a/source/pyAggr3g470r.py +++ b/source/pyAggr3g470r.py @@ -145,7 +145,7 @@ class pyAggr3g470r(object): tmpl = lookup.get_template("index.html") 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) + nb_mail_notifications=nb_mail_notifications, header_text=nb_unread_articles) index.exposed = True @@ -329,7 +329,7 @@ class pyAggr3g470r(object): previous = liste[0] tmpl = lookup.get_template("article.html") - return tmpl.render(article=article, previous=previous, following=following, \ + return tmpl.render(header_text=article["article_title"], article=article, previous=previous, following=following, \ diaspora=conf.DIASPORA_POD, feed=feed, description=description) article.exposed = True diff --git a/source/templates/base.html b/source/templates/base.html index 75776128..3eff5bfe 100644 --- a/source/templates/base.html +++ b/source/templates/base.html @@ -2,12 +2,12 @@ <!DOCTYPE html> <html> <head> - %if nb_unread_articles is UNDEFINED: + %if header_text is UNDEFINED: <title>pyAggr3g470r</title> - %elif nb_unread_articles == 0: + %elif header_text == 0: <title>pyAggr3g470r</title> %else: - <title>${nb_unread_articles} - pyAggr3g470r</title> + <title>${header_text} - pyAggr3g470r</title> %endif <link rel="stylesheet" type="text/css" href="/css/style.css" /> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> |