summaryrefslogtreecommitdiff
path: root/searx/templates
diff options
context:
space:
mode:
authorGenericMale <genericmale00@gmail.com>2024-08-23 01:29:44 +0200
committerBnyro <bnyro@tutanota.com>2024-08-28 14:27:03 +0200
commit8289436e55adca46e40743ae1be229643cb3148f (patch)
treea0605edc8633ef0c236fc51b952600e874840cb2 /searx/templates
parent4f7dd05d99f159111db152f86a583a5e2964d4a4 (diff)
downloadsearxng-8289436e55adca46e40743ae1be229643cb3148f.tar.gz
searxng-8289436e55adca46e40743ae1be229643cb3148f.zip
[fix] search: don't show categories without active engine
Diffstat (limited to 'searx/templates')
-rw-r--r--searx/templates/simple/categories.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/searx/templates/simple/categories.html b/searx/templates/simple/categories.html
index 65f8aeaf4..698c857e9 100644
--- a/searx/templates/simple/categories.html
+++ b/searx/templates/simple/categories.html
@@ -14,7 +14,7 @@
<div id="categories" class="search_categories">{{- '' -}}
<div id="categories_container">
{%- if not search_on_category_select or not display_tooltip -%}
- {%- for category in categories_as_tabs -%}
+ {%- for category in categories -%}
<div class="category category_checkbox">{{- '' -}}
<input type="checkbox" id="checkbox_{{ category|replace(' ', '_') }}" name="category_{{ category }}"{% if category in selected_categories %} checked="checked"{% endif %}/>
<label for="checkbox_{{ category|replace(' ', '_') }}" class="tooltips">
@@ -25,7 +25,7 @@
{%- endfor -%}
{%- if display_tooltip %}<div class="help">{{ _('Click on the magnifier to perform search') }}</div>{% endif -%}
{%- else -%}
- {%- for category in categories_as_tabs -%}{{- '\n' -}}
+ {%- for category in categories -%}{{- '\n' -}}
<button type="submit" name="category_{{ category }}" class="category category_button {% if category in selected_categories %}selected{% endif %}">
{{- icon_big(category_icons[category]) if category in category_icons else icon_big('globe-outline') -}}
<div class="category_name">{{- _(category) -}}</div>{{- '' -}}