summaryrefslogtreecommitdiff
path: root/searx
diff options
context:
space:
mode:
authorMrPaulBlack <paul.accounts@protonmail.com>2021-09-24 16:04:10 +0200
committerMrPaulBlack <paul.accounts@protonmail.com>2021-09-24 16:04:10 +0200
commit2d26ace2650a893b7cf4019ae8c9b41dd8785550 (patch)
tree9b5b5beab2a9b2a11aaeedf47ff6a3a3c24f00e8 /searx
parente63410d2f4c7946896be3c53fe3bc423fd599dd6 (diff)
downloadsearxng-2d26ace2650a893b7cf4019ae8c9b41dd8785550.tar.gz
searxng-2d26ace2650a893b7cf4019ae8c9b41dd8785550.zip
[preferences] add special queries tab to preferences
Diffstat (limited to 'searx')
-rw-r--r--searx/templates/simple/preferences.html42
1 files changed, 42 insertions, 0 deletions
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 %}
+ <div class="scrollx">
+ <table class="striped">
+ <tr>
+ <th>{{ _('Allow') }}</th>
+ <th>{{ _('Keywords') }}</th>
+ <th>{{ _('Name') }}</th>
+ <th>{{ _('Description') }}</th>
+ <th>{{ _('Examples') }}</th>
+ </tr>
+ <td></td>
+ <th scope="colgroup" colspan="4">{{ _('This is the list of searx\'s instant answering modules.') }}</th>
+ {% for answerer in answerers %}
+ <tr>
+ <td></td>
+ <td>{{ answerer.keywords|join(', ') }}</td>
+ <td><div class="checkbox">{{ answerer.info.name }}</div></td>
+ <td>{{ answerer.info.description }}</td>
+ <td>{{ answerer.info.examples|join(', ') }}</td>
+ </tr>
+ {% endfor %}
+ <td></td>
+ <th scope="colgroup" colspan="4">{{ _('This is the list of plugins.') }}</th>
+ {%- for plugin in plugins -%}
+ {%- if plugin.preference_section == 'query' -%}
+ <tr>
+ <td>{{- checkbox_onoff('plugin_' + plugin.id, plugin.id not in allowed_plugins) -}}</td>
+ <td>{{ plugin.query_keywords|join(', ') }}</td>
+ <td><div class="checkbox">{{ _(plugin.name) }}</div></td>
+ <td>{{ _(plugin.description) }}</td>
+ <td>{{ plugin.query_examples }}</td>
+ </tr>
+ {%- endif -%}
+ {%- endfor -%}
+ </table>
+ </div>
+ {% endif %}
+
+ {{ tab_footer() }}
+
{{ tab_header('maintab', 'privacy', _('Privacy')) }}
{% if 'method' not in locked_preferences %}
<fieldset>