answerers.html 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <div class="scrollx">{{- '' -}}
  2. <table class="striped">{{- '' -}}
  3. <tr>{{- '' -}}
  4. <th>{{ _('Allow') }}</th>{{- '' -}}
  5. <th>{{ _('Keywords') }}</th>{{- '' -}}
  6. <th>{{ _('Name') }}</th>{{- '' -}}
  7. <th>{{ _('Description') }}</th>{{- '' -}}
  8. <th>{{ _('Examples') }}</th>{{- '' -}}
  9. </tr>{{- '' -}}
  10. <tr class="pref-group" >{{- '' -}}
  11. <th scope="colgroup" colspan="5">
  12. {{- _("This is the list of SearXNG's instant answering modules.") -}}
  13. </th>{{- '' -}}
  14. </tr>
  15. {%- for answerer in answerers -%}
  16. <tr>{{- '' -}}
  17. <td class="checkbox-col"></td>{{- '' -}}
  18. <td>{{ answerer.keywords|join(', ') }}</td>{{- '' -}}
  19. <td>{{ answerer.info.name }}</td>{{- '' -}}
  20. <td>{{ answerer.info.description }}</td>{{- '' -}}
  21. <td>{{ answerer.info.examples|join(', ') }}</td>{{- '' -}}
  22. </tr>
  23. {%- endfor -%}
  24. <tr class="pref-group" >{{- '' -}}
  25. <th scope="colgroup" colspan="5">
  26. {{- _('This is the list of plugins.') -}}
  27. </th>{{- '' -}}
  28. </th>
  29. {%- for plugin in plugins -%}
  30. {%- if plugin.preference_section == 'query' -%}
  31. <tr>{{- '' -}}
  32. <td class="checkbox-col">{{- checkbox_onoff_reversed('plugin_' + plugin.id, plugin.id not in allowed_plugins) -}}</td>{{- '' -}}
  33. <td>{{ plugin.query_keywords|join(', ') }}</td>{{- '' -}}
  34. <td>{{ _(plugin.name) }}</td>{{- '' -}}
  35. <td>{{ _(plugin.description) }}</td>{{- '' -}}
  36. <td>{{ plugin.query_examples }}</td>{{- '' -}}
  37. </tr>
  38. {%- endif -%}
  39. {%- endfor -%}
  40. </table>{{- '' -}}
  41. </div>{{- '' -}}