diff options
author | Emilien Devos <4016501+unixfox@users.noreply.github.com> | 2023-09-18 21:41:52 +0200 |
---|---|---|
committer | Markus Heiser <markus.heiser@darmarIT.de> | 2023-09-19 11:10:48 +0200 |
commit | 33e722f83b56a984d73868bf36817cb0df0b9cc4 (patch) | |
tree | 3faa707e451bd0536ecc835bccea427bb8ae494f /searx/templates/simple/elements | |
parent | ad725ce7d7df5afc2fc2f63405195b6bcfc8a8a7 (diff) | |
download | searxng-33e722f83b56a984d73868bf36817cb0df0b9cc4.tar.gz searxng-33e722f83b56a984d73868bf36817cb0df0b9cc4.zip |
better error message when no results found
Diffstat (limited to 'searx/templates/simple/elements')
-rw-r--r-- | searx/templates/simple/elements/engines_msg.html | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/searx/templates/simple/elements/engines_msg.html b/searx/templates/simple/elements/engines_msg.html index 33f31842d..db1cefaaf 100644 --- a/searx/templates/simple/elements/engines_msg.html +++ b/searx/templates/simple/elements/engines_msg.html @@ -1,5 +1,9 @@ <div id="engines_msg"> + {% if not results and not answers %} + <details class="sidebar-collapsable" open> + {% else %} <details class="sidebar-collapsable"> + {% endif %} <summary class="title" id="engines_msg-title">{{ _('Messages from the search engines') }}</summary> <div class="dialog-error" role="alert"> {{ icon_big('warning') }} |