summaryrefslogtreecommitdiff
path: root/searx/templates/oscar/base.html
diff options
context:
space:
mode:
authorAdam Tauber <asciimoo@gmail.com>2017-12-05 22:30:20 +0100
committerAdam Tauber <asciimoo@gmail.com>2017-12-05 22:30:20 +0100
commite060aedc16bb2b9e5c1ee3fc69a0e07a3576a80c (patch)
tree668f5eb13df2dc3ca242b272b0584a9a4d7f64e7 /searx/templates/oscar/base.html
parent46fb0d860e35a45658969c4e2ac306a1072bc331 (diff)
[enh] make custom oscar option configurable from url
Diffstat (limited to 'searx/templates/oscar/base.html')
-rw-r--r--searx/templates/oscar/base.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/searx/templates/oscar/base.html b/searx/templates/oscar/base.html
index 890204c7e..e3afb1ff0 100644
--- a/searx/templates/oscar/base.html
+++ b/searx/templates/oscar/base.html
@@ -13,8 +13,8 @@
<title>{% block title %}{% endblock %}{{ instance_name }}</title>
<link rel="stylesheet" href="{{ url_for('static', filename='css/bootstrap.min.css') }}" type="text/css" />
- {% if cookies['oscar-style'] %}
- <link rel="stylesheet" href="{{ url_for('static', filename='css/'+cookies['oscar-style']+'.min.css') }}" type="text/css" />
+ {% if preferences.get_value('oscar-style') %}
+ <link rel="stylesheet" href="{{ url_for('static', filename='css/'+preferences.get_value('oscar-style')+'.min.css') }}" type="text/css" />
{% else %}
<link rel="stylesheet" href="{{ url_for('static', filename='css/logicodev.min.css') }}" type="text/css" />
{% endif %}