answerers.html 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. <td></td>{{- '' -}}
  11. <th scope="colgroup" colspan="4">
  12. {{- _("This is the list of SearXNG's instant answering modules.") -}}
  13. </th>
  14. {%- for answerer in answerers -%}
  15. <tr>{{- '' -}}
  16. <td></td>{{- '' -}}
  17. <td>{{ answerer.keywords|join(', ') }}</td>{{- '' -}}
  18. <td>{{ answerer.info.name }}</td>{{- '' -}}
  19. <td>{{ answerer.info.description }}</td>{{- '' -}}
  20. <td>{{ answerer.info.examples|join(', ') }}</td>{{- '' -}}
  21. </tr>
  22. {%- endfor -%}
  23. <td></td>{{- '' -}}
  24. <th scope="colgroup" colspan="4">
  25. {{- _('This is the list of plugins.') -}}
  26. </th>{{- '' -}}
  27. {%- for plugin in plugins -%}
  28. {%- if plugin.preference_section == 'query' -%}
  29. <tr>{{- '' -}}
  30. <td>{{- checkbox_onoff_reversed('plugin_' + plugin.id, plugin.id not in allowed_plugins) -}}</td>{{- '' -}}
  31. <td>{{ plugin.query_keywords|join(', ') }}</td>{{- '' -}}
  32. <td>{{ _(plugin.name) }}</td>{{- '' -}}
  33. <td>{{ _(plugin.description) }}</td>{{- '' -}}
  34. <td>{{ plugin.query_examples }}</td>{{- '' -}}
  35. </tr>
  36. {%- endif -%}
  37. {%- endfor -%}
  38. </table>{{- '' -}}
  39. </div>{{- '' -}}