From a55e0ac553e608e5657573a8173aa5a040a49054 Mon Sep 17 00:00:00 2001 From: Bnyro Date: Sat, 9 Sep 2023 16:49:14 +0200 Subject: [feat] search on category select without JS Co-authored-by: Alexandre Flament --- searx/templates/simple/categories.html | 29 ++++++++++++++++++++--------- 1 file changed, 20 insertions(+), 9 deletions(-) (limited to 'searx/templates/simple/categories.html') diff --git a/searx/templates/simple/categories.html b/searx/templates/simple/categories.html index 29616f127..6ba550015 100644 --- a/searx/templates/simple/categories.html +++ b/searx/templates/simple/categories.html @@ -13,14 +13,25 @@ } -%}
{{- '' -}}
- {%- for category in categories -%} -
- -
- {%- endfor -%} - {%- if display_tooltip %}
{{ _('Click on the magnifier to perform search') }}
{% endif -%} + {%- if not search_on_category_select or not display_tooltip -%} + {%- for category in categories_as_tabs -%} +
{{- '' -}} + + +
+ {%- endfor -%} + {%- if display_tooltip %}
{{ _('Click on the magnifier to perform search') }}
{% endif -%} + {%- else -%} + {%- for category in categories_as_tabs -%}{{- '\n' -}} + {{- '' -}} + {%- endfor -%} + {{- '\n' -}} + {%- endif -%}
{{- '' -}}
-- cgit v1.2.3