diff options
author | Markus Heiser <markus.heiser@darmarit.de> | 2023-05-28 12:02:53 +0200 |
---|---|---|
committer | Markus Heiser <markus.heiser@darmarIT.de> | 2023-05-28 12:19:32 +0200 |
commit | 3ca97cf5e3f432b761553c912582449d12e43017 (patch) | |
tree | 696c767dcef4ba10519fa88be85d1c11c2519fe8 /searx/templates/simple/messages | |
parent | 60b94dfdcac3c59a9b9009dc6d84c4a0a5d5bd90 (diff) | |
download | searxng-3ca97cf5e3f432b761553c912582449d12e43017.tar.gz searxng-3ca97cf5e3f432b761553c912582449d12e43017.zip |
[fix] simple theme: move engine alerts in case of no results into sidebar
If there were no results but errors in the engines then the error dialogs of the
engines was displayed in the result list.
With the new design errors of the engines should only be displayed in the
sidebar and at the same time duplications of the (template) code will be
avoided.
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'searx/templates/simple/messages')
-rw-r--r-- | searx/templates/simple/messages/no_results.html | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/searx/templates/simple/messages/no_results.html b/searx/templates/simple/messages/no_results.html index 7bb708b8c..6412191dd 100644 --- a/searx/templates/simple/messages/no_results.html +++ b/searx/templates/simple/messages/no_results.html @@ -1,23 +1,5 @@ {% from 'simple/icons.html' import icon_big %} -{% if unresponsive_engines %} -<div class="dialog-error" role="alert"> - {{ icon_big('warning') }} - <div> - <p><strong>{{ _('Error!') }}</strong> {{ _('Engines cannot retrieve results.') }}</p> - {% for engine_name, error_type in unresponsive_engines %} - <p>{{- '' -}} - {{- engine_name }} ( - <a href="{{ url_for('stats', engine=engine_name|e) }}" title="{{ _('View error logs and submit a bug report') }}"> - {{- error_type -}} - </a> ){{- '' -}} - </p> - {%- endfor %} - <p><small>{{ _('Please, try again later or find another SearXNG instance.') }} (<a href="{{ get_setting('brand.public_instances') }}">{{ _('Public instances') }}</a>) </small></p> - </div> -</div> -{% else %} <div class="dialog-error" role="alert"> <p><strong>{{ _('Sorry!') }}</strong></p> <p>{{ _("we didn't find any results. Please use another query or search in more categories.") }}</p> </div> -{% endif %} |