diff options
author | Thomas Pointhuber <thomas.pointhuber@gmx.at> | 2014-03-21 12:19:48 +0100 |
---|---|---|
committer | Thomas Pointhuber <thomas.pointhuber@gmx.at> | 2014-03-21 12:19:48 +0100 |
commit | a76525d1f3256105d45ee0a0f1301a8cc0b2e4c6 (patch) | |
tree | e703d7df3790c095376ba7b9e2b052c83435b91f /searx | |
parent | 71c6124f7b86282f1b0d5cb45c6d9df0f71ba398 (diff) | |
download | searxng-a76525d1f3256105d45ee0a0f1301a8cc0b2e4c6.tar.gz searxng-a76525d1f3256105d45ee0a0f1301a8cc0b2e4c6.zip |
add client var to all render pages
Diffstat (limited to 'searx')
-rw-r--r-- | searx/webapp.py | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/searx/webapp.py b/searx/webapp.py index 6a6ebddb2..ab5806381 100644 --- a/searx/webapp.py +++ b/searx/webapp.py @@ -225,7 +225,10 @@ def index(): @app.route('/about', methods=['GET']) def about(): """Render about page""" - return render('about.html') + return render( + 'about.html', + client=settings.get('client', None) + ) @app.route('/autocompleter', methods=['GET', 'POST']) @@ -320,6 +323,7 @@ def preferences(): ) return resp return render('preferences.html', + client=settings.get('client', None), locales=settings['locales'], current_locale=get_locale(), current_language=lang or 'all', @@ -334,7 +338,11 @@ def stats(): """Render engine statistics page.""" global categories stats = get_engines_stats() - return render('stats.html', stats=stats) + return render( + 'stats.html', + stats=stats, + client=settings.get('client', None) + ) @app.route('/robots.txt', methods=['GET']) |