summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--searx/templates/simple/elements/engines_msg.html2
-rw-r--r--searx/templates/simple/messages/no_results.html18
-rw-r--r--searx/templates/simple/results.html2
3 files changed, 1 insertions, 21 deletions
diff --git a/searx/templates/simple/elements/engines_msg.html b/searx/templates/simple/elements/engines_msg.html
index 1ae8a8c3b..33f31842d 100644
--- a/searx/templates/simple/elements/engines_msg.html
+++ b/searx/templates/simple/elements/engines_msg.html
@@ -21,5 +21,3 @@
</div>
</details>
</div>
-
-
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 %}
diff --git a/searx/templates/simple/results.html b/searx/templates/simple/results.html
index edd0ebfbc..c472d585c 100644
--- a/searx/templates/simple/results.html
+++ b/searx/templates/simple/results.html
@@ -58,7 +58,7 @@
{%- include 'simple/elements/search_url.html' -%}
{%- endif -%}
- {%- if unresponsive_engines and results|length >= 1 -%}
+ {%- if unresponsive_engines -%}
{%- include 'simple/elements/engines_msg.html' -%}
{%- endif -%}