summaryrefslogtreecommitdiff
path: root/searx/templates/simple/preferences/image_proxy.html
diff options
context:
space:
mode:
authorBnyro <bnyro@tutanota.com>2023-08-20 14:03:03 +0200
committerMarkus Heiser <markus.heiser@darmarIT.de>2023-08-27 21:23:43 +0200
commite5535ec078776d07d8eeac0d51dc8f17f77cfb27 (patch)
tree40b4584b3a9ae10b943ce429e418d378831e058e /searx/templates/simple/preferences/image_proxy.html
parent5a5cfc19305b294bbcd45a54e937fd0252d80253 (diff)
[feat] settings: replace boolean select preferences with checkboxes
Diffstat (limited to 'searx/templates/simple/preferences/image_proxy.html')
-rw-r--r--searx/templates/simple/preferences/image_proxy.html14
1 files changed, 9 insertions, 5 deletions
diff --git a/searx/templates/simple/preferences/image_proxy.html b/searx/templates/simple/preferences/image_proxy.html
index c636a3172..afb3465d4 100644
--- a/searx/templates/simple/preferences/image_proxy.html
+++ b/searx/templates/simple/preferences/image_proxy.html
@@ -1,11 +1,15 @@
<fieldset>{{- '' -}}
<legend id="pref_image_proxy">{{ _('Image proxy') }}</legend>{{- '' -}}
<p class="value">{{- '' -}}
- <select name='image_proxy' aria-labelledby="pref_image_proxy">{{- '' -}}
- <option value="1" {% if image_proxy %}selected="selected"{% endif %}>{{ _('Enabled') }}</option>{{- '' -}}
- <option value="0" {% if not image_proxy %}selected="selected"{% endif %}>{{ _('Disabled') }}</option>{{- '' -}}
- </select>{{- '' -}}
- </p>
+ <input type="checkbox" {{- ' ' -}}
+ name="image_proxy" {{- ' ' -}}
+ aria-labelledby="pref_image_proxy" {{- ' ' -}}
+ class="checkbox-onoff" {{- ' ' -}}
+ {%- if preferences.get_value('image_proxy') -%}
+ checked
+ {%- endif -%}{{- ' ' -}}
+ />{{- '' -}}
+ </p>{{- '' -}}
<div class="description">
{{- _('Proxying image results through SearXNG') -}}
</div>{{- '' -}}