From c6175f5fc78667221f17e23ee90f66bda72135a2 Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Tue, 3 Dec 2013 21:26:46 +0100 Subject: The title of the HTML page is now updated for /article and /feed pages. --- pyaggr3g470r/templates/layout.html | 2 +- pyaggr3g470r/views.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pyaggr3g470r/templates/layout.html b/pyaggr3g470r/templates/layout.html index 541c0ad8..d8f8790a 100644 --- a/pyaggr3g470r/templates/layout.html +++ b/pyaggr3g470r/templates/layout.html @@ -7,7 +7,7 @@ - pyAggr3g470r + {% if head_title %}{{ head_title }} - {% endif %}pyAggr3g470r diff --git a/pyaggr3g470r/views.py b/pyaggr3g470r/views.py index cdbc1a45..cf10d1c5 100644 --- a/pyaggr3g470r/views.py +++ b/pyaggr3g470r/views.py @@ -146,7 +146,7 @@ def feed(feed_id=None): articles = feed.articles top_words = utils.top_words(articles, n=50, size=int(word_size)) tag_cloud = utils.tag_cloud(top_words) - return render_template('feed.html', feed=feed, tag_cloud=tag_cloud) + return render_template('feed.html', head_title=feed.title, feed=feed, tag_cloud=tag_cloud) @app.route('/article/', methods=['GET']) @login_required @@ -159,7 +159,7 @@ def article(article_id=None): if not article.readed: article.readed = True article.save() - return render_template('article.html', article=article) + return render_template('article.html', head_title=article.title, article=article) @app.route('/mark_as_read/', methods=['GET']) @login_required -- cgit