aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r/views/views.py
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2015-04-12 18:50:06 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2015-04-12 18:50:06 +0200
commit3cf8da647eb7fd6db15b1d51202ec03718cfdd72 (patch)
treeadd74eb59a1eda83f620e2fd044335eb63e0c85e /pyaggr3g470r/views/views.py
parentRemoved a bad character in the layout.html file. (diff)
downloadnewspipe-3cf8da647eb7fd6db15b1d51202ec03718cfdd72.tar.gz
newspipe-3cf8da647eb7fd6db15b1d51202ec03718cfdd72.tar.bz2
newspipe-3cf8da647eb7fd6db15b1d51202ec03718cfdd72.zip
Do not display the search button on Heroku.
Diffstat (limited to 'pyaggr3g470r/views/views.py')
-rw-r--r--pyaggr3g470r/views/views.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/pyaggr3g470r/views/views.py b/pyaggr3g470r/views/views.py
index 06b234cd..fa6bd2a0 100644
--- a/pyaggr3g470r/views/views.py
+++ b/pyaggr3g470r/views/views.py
@@ -146,7 +146,8 @@ def inject_feed_form():
Context processors run before the template is rendered and have the
ability to inject new values into the template context.
"""
- return dict(create_feed_form=AddFeedForm())
+ return dict(create_feed_form=AddFeedForm(),
+ on_HEROKU=conf.ON_HEROKU)
#
# Views.
@@ -539,8 +540,8 @@ def management():
nb_articles = articles.count()
nb_unread_articles = articles.filter(Article.readed == False).count()
return render_template('management.html', user=g.user, form=form,
- nb_feeds=nb_feeds, nb_articles=nb_articles, nb_unread_articles=nb_unread_articles,
- not_on_heroku = not conf.ON_HEROKU)
+ nb_feeds=nb_feeds, nb_articles=nb_articles,
+ nb_unread_articles=nb_unread_articles)
@app.route('/history', methods=['GET'])
@app.route('/history/<int:year>', methods=['GET'])
bgstack15