mirror of
https://github.com/searxng/searxng.git
synced 2024-11-26 21:01:01 +00:00
[preferences] add special queries tab to preferences
This commit is contained in:
parent
e63410d2f4
commit
2d26ace265
1 changed files with 42 additions and 0 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue