mirror of
https://github.com/searxng/searxng.git
synced 2024-12-01 23:21:09 +00:00
2149e88bdd
HINT: this patch has no functional change / it is the preparation for following changes and bugfixes Over the years, the preferences template became an unmanageable beast. To make the source code more readable the monolith is splitted into elements. The splitting into elements also has the advantage that a new template can make use of them. The reversed checkbox is a quirk that is only used in the prefereces and must be eliminated in the long term. For this the macro 'checkbox_onoff_reversed' was added to the preferences.html template. The 'checkbox' macro is also a quirk of the preferences.html we don't want to use in other templates (it is an input-checkbox in a HTML form that was misused for status display). Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
43 lines
1.5 KiB
HTML
43 lines
1.5 KiB
HTML
<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 SearXNG's instant answering modules.") -}}
|
|
</th>
|
|
|
|
{%- for answerer in answerers -%}
|
|
<tr>{{- '' -}}
|
|
<td></td>{{- '' -}}
|
|
<td>{{ answerer.keywords|join(', ') }}</td>{{- '' -}}
|
|
<td>{{ answerer.info.name }}</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_reversed('plugin_' + plugin.id, plugin.id not in allowed_plugins) -}}</td>{{- '' -}}
|
|
<td>{{ plugin.query_keywords|join(', ') }}</td>{{- '' -}}
|
|
<td>{{ _(plugin.name) }}</td>{{- '' -}}
|
|
<td>{{ _(plugin.description) }}</td>{{- '' -}}
|
|
<td>{{ plugin.query_examples }}</td>{{- '' -}}
|
|
</tr>
|
|
{%- endif -%}
|
|
{%- endfor -%}
|
|
</table>{{- '' -}}
|
|
</div>{{- '' -}}
|