summaryrefslogtreecommitdiff
path: root/searx/webapp.py
diff options
context:
space:
mode:
authorThomas Pointhuber <thomas.pointhuber@gmx.at>2015-01-18 13:54:24 +0100
committerThomas Pointhuber <thomas.pointhuber@gmx.at>2015-01-18 13:54:24 +0100
commit1f00ce8527c8ca0f6318f4b43b3f79ee1429b70b (patch)
tree0fdad2e1caff53ee935935672838bfa689b64caf /searx/webapp.py
parent7366a0e14139c20f8de68f135a29e6aa488a2ae1 (diff)
Revert: [enh] add new bootstrap-themes to oscar-template
Diffstat (limited to 'searx/webapp.py')
-rw-r--r--searx/webapp.py14
1 files changed, 0 insertions, 14 deletions
diff --git a/searx/webapp.py b/searx/webapp.py
index f365c33b1..e25156f40 100644
--- a/searx/webapp.py
+++ b/searx/webapp.py
@@ -262,9 +262,6 @@ def render(template_name, override_theme=None, **kwargs):
if 'autocomplete' not in kwargs:
kwargs['autocomplete'] = autocomplete
- if 'bootstrap_theme' not in kwargs:
- kwargs['bootstrap_theme'] = request.cookies.get('bootstrap_theme', 'default')
-
kwargs['searx_version'] = VERSION_STRING
kwargs['method'] = request.cookies.get('method', 'POST')
@@ -467,7 +464,6 @@ def preferences():
Settings that are going to be saved as cookies."""
lang = None
image_proxy = request.cookies.get('image_proxy', settings['server'].get('image_proxy'))
- bootstrap_themes = ['default', 'simplex', 'yeti', 'readable']
if request.cookies.get('language')\
and request.cookies['language'] in (x[0] for x in language_codes):
@@ -482,7 +478,6 @@ def preferences():
locale = None
autocomplete = ''
method = 'POST'
- bootstrap_theme = None
for pd_name, pd in request.form.items():
if pd_name.startswith('category_'):
category = pd_name[9:]
@@ -507,11 +502,6 @@ def preferences():
blocked_engines.append(engine_name)
elif pd_name == 'theme':
theme = pd if pd in themes else default_theme
- elif pd_name == 'bootstrap_theme':
- if pd in bootstrap_themes:
- bootstrap_theme = pd
- else:
- bootstrap_theme = 'default'
resp = make_response(redirect(url_for('index')))
@@ -553,9 +543,6 @@ def preferences():
resp.set_cookie('theme', theme, max_age=cookie_max_age)
- if bootstrap_theme:
- resp.set_cookie('bootstrap_theme', bootstrap_theme, max_age=cookie_max_age)
-
return resp
return render('preferences.html',
locales=settings['locales'],
@@ -568,7 +555,6 @@ def preferences():
autocomplete_backends=autocomplete_backends,
shortcuts={y: x for x, y in engine_shortcuts.items()},
themes=themes,
- bootstrap_themes=bootstrap_themes,
theme=get_current_theme_name())