From 3ca97cf5e3f432b761553c912582449d12e43017 Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Sun, 28 May 2023 12:02:53 +0200 Subject: [PATCH] [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 --- .../templates/simple/elements/engines_msg.html | 2 -- .../templates/simple/messages/no_results.html | 18 ------------------ searx/templates/simple/results.html | 2 +- 3 files changed, 1 insertion(+), 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 @@ - - 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 %} - -{% else %} -{% 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 -%}