From 2d26ace2650a893b7cf4019ae8c9b41dd8785550 Mon Sep 17 00:00:00 2001 From: MrPaulBlack Date: Fri, 24 Sep 2021 16:04:10 +0200 Subject: [PATCH] [preferences] add special queries tab to preferences --- searx/templates/simple/preferences.html | 42 +++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/searx/templates/simple/preferences.html b/searx/templates/simple/preferences.html index d544a8cb8..ab237a219 100644 --- a/searx/templates/simple/preferences.html +++ b/searx/templates/simple/preferences.html @@ -287,6 +287,48 @@ {{ tab_footer() }} + {{ tab_header('maintab', 'query', _('Special Queries')) }} + + {% if answerers %} +
+ + + + + + + + + + + {% for answerer in answerers %} + + + + + + + + {% endfor %} + + + {%- for plugin in plugins -%} + {%- if plugin.preference_section == 'query' -%} + + + + + + + + {%- endif -%} + {%- endfor -%} +
{{ _('Allow') }}{{ _('Keywords') }}{{ _('Name') }}{{ _('Description') }}{{ _('Examples') }}
{{ _('This is the list of searx\'s instant answering modules.') }}
{{ answerer.keywords|join(', ') }}
{{ answerer.info.name }}
{{ answerer.info.description }}{{ answerer.info.examples|join(', ') }}
{{ _('This is the list of plugins.') }}
{{- checkbox_onoff('plugin_' + plugin.id, plugin.id not in allowed_plugins) -}}{{ plugin.query_keywords|join(', ') }}
{{ _(plugin.name) }}
{{ _(plugin.description) }}{{ plugin.query_examples }}
+
+ {% endif %} + + {{ tab_footer() }} + {{ tab_header('maintab', 'privacy', _('Privacy')) }} {% if 'method' not in locked_preferences %}