mirror of
https://github.com/searxng/searxng.git
synced 2024-11-15 09:10:12 +01:00
5ad0214bd4
In its previous implementation, the macro ``checkbox_onoff_reversed`` always created an ``aria-labelledby`` attribute, even if there was no descriptive tag with the generated ID (used as the value of the ``aria-labelledby``). Before this patch, the Nu-HTML-Checker [1] reported 255 issues of this type:: The aria-labelledby attribute must point to an element in the same document. (255) [1] https://validator.w3.org/nu/ Signed-off-by: Markus <markus@venom.fritz.box>
46 lines
1.7 KiB
HTML
46 lines
1.7 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>{{- '' -}}
|
|
|
|
<tr class="pref-group" >{{- '' -}}
|
|
<th scope="colgroup" colspan="5">
|
|
{{- _("This is the list of SearXNG's instant answering modules.") -}}
|
|
</th>{{- '' -}}
|
|
</tr>
|
|
|
|
{%- for answerer in answerers -%}
|
|
<tr>{{- '' -}}
|
|
<td class="checkbox-col"></td>{{- '' -}}
|
|
<td>{{ answerer.keywords|join(', ') }}</td>{{- '' -}}
|
|
<td>{{ answerer.info.name }}</td>{{- '' -}}
|
|
<td>{{ answerer.info.description }}</td>{{- '' -}}
|
|
<td>{{ answerer.info.examples|join(', ') }}</td>{{- '' -}}
|
|
</tr>
|
|
{%- endfor -%}
|
|
|
|
<tr class="pref-group" >{{- '' -}}
|
|
<th scope="colgroup" colspan="5">
|
|
{{- _('This is the list of plugins.') -}}
|
|
</th>{{- '' -}}
|
|
</th>
|
|
|
|
{%- for plugin in plugins -%}
|
|
{%- if plugin.preference_section == 'query' -%}
|
|
<tr>{{- '' -}}
|
|
<td class="checkbox-col">{{- checkbox_onoff_reversed('plugin_' + plugin.id, plugin.id not in allowed_plugins, 'plugin_labelledby' + plugin.id) -}}</td>{{- '' -}}
|
|
<td>{{ plugin.query_keywords|join(', ') }}</td>{{- '' -}}
|
|
<td>{{ _(plugin.name) }}</td>{{- '' -}}
|
|
<td id="{{ 'plugin_labelledby' + plugin.id }}">{{ _(plugin.description) }}</td>{{- '' -}}
|
|
<td>{{ plugin.query_examples }}</td>{{- '' -}}
|
|
</tr>
|
|
{%- endif -%}
|
|
{%- endfor -%}
|
|
</table>{{- '' -}}
|
|
</div>{{- '' -}}
|