summaryrefslogtreecommitdiff
path: root/searx/templates/oscar/preferences.html
diff options
context:
space:
mode:
authorAdam Tauber <asciimoo@gmail.com>2015-02-03 18:37:38 +0100
committerAdam Tauber <asciimoo@gmail.com>2015-02-03 18:37:38 +0100
commit1de781a143270c8f1f98a04b688b8546ad341ec5 (patch)
treef9e48a7644e88a2909d0f5e4a2ac251baa4ff9a1 /searx/templates/oscar/preferences.html
parent268e0516eee10f97891aa8a136fd910460f71660 (diff)
downloadsearxng-1de781a143270c8f1f98a04b688b8546ad341ec5.tar.gz
searxng-1de781a143270c8f1f98a04b688b8546ad341ec5.zip
[enh] category specific engine deactivation - closes #205
Diffstat (limited to 'searx/templates/oscar/preferences.html')
-rw-r--r--searx/templates/oscar/preferences.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/templates/oscar/preferences.html b/searx/templates/oscar/preferences.html
index f6f14501e..41656463c 100644
--- a/searx/templates/oscar/preferences.html
+++ b/searx/templates/oscar/preferences.html
@@ -128,7 +128,7 @@
<div class="col-xs-6 col-sm-4 col-md-4">{{ search_engine.name }} ({{ shortcuts[search_engine.name] }})</div>
<div class="col-xs-6 col-sm-4 col-md-4">
<div class="checkbox">
- <input class="hidden" type="checkbox" id="engine_{{ categ|replace(' ', '_') }}_{{ search_engine.name|replace(' ', '_') }}" name="engine_{{ search_engine.name }}"{% if search_engine.name in blocked_engines %} checked="checked"{% endif %} />
+ <input class="hidden" type="checkbox" id="engine_{{ categ|replace(' ', '_') }}_{{ search_engine.name|replace(' ', '_') }}" name="engine_{{ search_engine.name }}__{{ categ }}"{% if (search_engine.name, categ) in blocked_engines %} checked="checked"{% endif %} />
<label class="btn btn-success label_hide_if_checked" for="engine_{{ categ|replace(' ', '_') }}_{{ search_engine.name|replace(' ', '_') }}">{{ _('Block') }}</label>
<label class="btn btn-danger label_hide_if_not_checked" for="engine_{{ categ|replace(' ', '_') }}_{{ search_engine.name|replace(' ', '_') }}">{{ _('Allow') }}</label>
</div>