summaryrefslogtreecommitdiff
path: root/searx/templates/simple
diff options
context:
space:
mode:
authorEmilien Devos <4016501+unixfox@users.noreply.github.com>2023-09-18 21:41:52 +0200
committerMarkus Heiser <markus.heiser@darmarIT.de>2023-09-19 11:10:48 +0200
commit33e722f83b56a984d73868bf36817cb0df0b9cc4 (patch)
tree3faa707e451bd0536ecc835bccea427bb8ae494f /searx/templates/simple
parentad725ce7d7df5afc2fc2f63405195b6bcfc8a8a7 (diff)
downloadsearxng-33e722f83b56a984d73868bf36817cb0df0b9cc4.tar.gz
searxng-33e722f83b56a984d73868bf36817cb0df0b9cc4.zip
better error message when no results found
Diffstat (limited to 'searx/templates/simple')
-rw-r--r--searx/templates/simple/elements/engines_msg.html4
-rw-r--r--searx/templates/simple/messages/no_results.html10
2 files changed, 12 insertions, 2 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') }}
diff --git a/searx/templates/simple/messages/no_results.html b/searx/templates/simple/messages/no_results.html
index 6412191dd..8361276d0 100644
--- a/searx/templates/simple/messages/no_results.html
+++ b/searx/templates/simple/messages/no_results.html
@@ -1,5 +1,11 @@
{% from 'simple/icons.html' import icon_big %}
-<div class="dialog-error" role="alert">
+<div class="dialog-error-block" role="alert">
<p><strong>{{ _('Sorry!') }}</strong></p>
- <p>{{ _("we didn't find any results. Please use another query or search in more categories.") }}</p>
+ <p>{{ _("No results were found. You can try to:") }}</p>
+ <ul>
+ <li>{{ _("Refresh the page.") }}</li>
+ <li>{{ _("Search for another query or select another category (above).") }}</li>
+ <li>{{ _("Change the search engine used in the preferences:") }} <a href="/preferences">/preferences</a></li>
+ <li>{{ _("Switch to another instance:") }} <a href="https://searx.space">https://searx.space</a></li>
+ </ul>
</div>