summaryrefslogtreecommitdiff
path: root/searx/templates/simple
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2021-12-28 14:51:21 +0100
committerMartin Fischer <martin@push-f.com>2022-01-05 11:03:44 +0100
commit31e206361fac911d84e1f19dcf3f0ce80883d625 (patch)
tree34373ba888332fdf88edfd19333837ff2d4cc622 /searx/templates/simple
parentb02f762687c117baba523cefdcd16d0f94ae886a (diff)
downloadsearxng-31e206361fac911d84e1f19dcf3f0ce80883d625.tar.gz
searxng-31e206361fac911d84e1f19dcf3f0ce80883d625.zip
[enh] group engines in preference tabs
Diffstat (limited to 'searx/templates/simple')
-rw-r--r--searx/templates/simple/preferences.html7
1 files changed, 6 insertions, 1 deletions
diff --git a/searx/templates/simple/preferences.html b/searx/templates/simple/preferences.html
index 5f289c580..1d565c238 100644
--- a/searx/templates/simple/preferences.html
+++ b/searx/templates/simple/preferences.html
@@ -289,7 +289,11 @@
<th>{{ _("Max time") }}</th>
<th>{{ _("Reliability") }}</th>
</tr>
- {% for search_engine in engines_by_category[categ] %}
+ {% for group, engines in engines_by_category[categ] | group_engines_in_tab %}
+ {% if loop.length > 1 %}
+ <tr><th colspan="9">{{_(group)}}</th></tr>
+ {% endif %}
+ {% for search_engine in engines %}
{% if not search_engine.private %}
{% set engine_id = 'engine_' + search_engine.name|replace(' ', '_') + '__' + categ|replace(' ', '_') %}
<tr>
@@ -305,6 +309,7 @@
</tr>
{% endif %}
{% endfor %}
+ {% endfor %}
</table>
</div>
{{ tab_footer() }}