From e83862c22f17295b8d493240cd0c51d25d1c59f9 Mon Sep 17 00:00:00 2001 From: Alexandre Flament Date: Fri, 30 Apr 2021 11:49:39 +0200 Subject: [themes] /preferences, reliablity: warning icons & error logs link When there is at least one errors or one failed checker test: * the warning icon is displayed in the reliability column * the link "View error logs and submit a bug report" is displayed on engine name tooltip. Before: * the warning icon was displayed only when one or more checker test(s) failed. * the link "View error logs and submit a bug report" was not shown when a checker test failed but there were no error. --- searx/templates/simple/preferences.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'searx/templates/simple/preferences.html') diff --git a/searx/templates/simple/preferences.html b/searx/templates/simple/preferences.html index 3e0f6d4cd..6d33233c7 100644 --- a/searx/templates/simple/preferences.html +++ b/searx/templates/simple/preferences.html @@ -25,7 +25,7 @@

{{about.website}}

{%- if about.wikidata_id -%}

wikidata.org/wiki/{{about.wikidata_id}}

{%- endif -%} {%- if search_engine.enable_http %}

{{ icon('exclamation-sign', 'No HTTPS') }}{{ _('No HTTPS')}}

{% endif -%} - {%- if reliabilities[search_engine.name].errors -%} + {%- if reliabilities.get(search_engine.name, {}).errors or reliabilities.get(search_engine.name, {}).checker -%} {{ _('View error logs and submit a bug report') }} @@ -70,13 +70,13 @@ {% if checker_result or errors %} {{- "" -}} {{- "" -}} - - {%- if reliabilities[engine_name].checker %}{{ icon('warning', 'The checker fails on the some tests') }}{% endif %} {{ r -}} + + {{ icon('warning', 'The engine is not reliabled') }} {{ r -}} {{- "" -}} {{- "" -}} -