aboutsummaryrefslogtreecommitdiff
path: root/source/pyAggr3g470r.py
diff options
context:
space:
mode:
authorCédric Bonhomme <kimble.mandel@gmail.com>2012-11-28 13:43:00 +0100
committerCédric Bonhomme <kimble.mandel@gmail.com>2012-11-28 13:43:00 +0100
commit8b83decec5d0184e03a306ad1f6b9537cafb3ded (patch)
tree723029ce1e31db7a107e4ebf894c6eca5e211a7a /source/pyAggr3g470r.py
parentDisplay the number of unread articles in the browser tab (with templates). (diff)
downloadnewspipe-8b83decec5d0184e03a306ad1f6b9537cafb3ded.tar.gz
newspipe-8b83decec5d0184e03a306ad1f6b9537cafb3ded.tar.bz2
newspipe-8b83decec5d0184e03a306ad1f6b9537cafb3ded.zip
Display the title of an article in the tab of the browser (for the /article page).
Diffstat (limited to 'source/pyAggr3g470r.py')
-rwxr-xr-xsource/pyAggr3g470r.py4
1 files changed, 2 insertions, 2 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
bgstack15