summaryrefslogtreecommitdiff
path: root/searx/templates/simple
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2022-07-23 18:26:43 +0200
committerMarkus Heiser <markus.heiser@darmarit.de>2023-04-10 09:22:21 +0200
commit7d17d37ac718e47406ab7af61a2dceb6635b77f9 (patch)
treec59f7aefb4ac0cb0a6141400ac4b09fa71992a1a /searx/templates/simple
parentac040fda3298f1c0de4ed42a7f9aceaaa16e322b (diff)
downloadsearxng-7d17d37ac718e47406ab7af61a2dceb6635b77f9.tar.gz
searxng-7d17d37ac718e47406ab7af61a2dceb6635b77f9.zip
[fix] don't show a category if there is no active engine in
When deactivate all the engines of a category, this category should disappeare. This feature has been lost in commit 8e9ad1cc. For better readability, webapp.get_enabled_categories() has been rewritten with identical functionality. Related: - https://github.com/searxng/searxng/issues/1020 - https://github.com/searxng/searxng/issues/1604 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'searx/templates/simple')
-rw-r--r--searx/templates/simple/categories.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/templates/simple/categories.html b/searx/templates/simple/categories.html
index cee9f1e35..29616f127 100644
--- a/searx/templates/simple/categories.html
+++ b/searx/templates/simple/categories.html
@@ -13,7 +13,7 @@
} -%}
<div id="categories" class="search_categories">{{- '' -}}
<div id="categories_container">
- {%- for category in categories_as_tabs -%}
+ {%- for category in categories -%}
<div class="category"><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">
{{- icon_big(category_icons[category]) if category in category_icons else icon_big('globe-outline') -}}