diff --git a/searx/templates/oscar/preferences.html b/searx/templates/oscar/preferences.html index 3f113afec..33fb41061 100644 --- a/searx/templates/oscar/preferences.html +++ b/searx/templates/oscar/preferences.html @@ -12,7 +12,7 @@ {%- if stats[search_engine.name]['result_count'] -%}
{{ _('Number of results') }}: {{ stats[search_engine.name]['result_count'] }} ( {{ _('Avg.') }} )
{{- "" -}} {%- 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') }} @@ -56,11 +56,11 @@ {% if checker_result or errors %}{{ _("Failed checker test(s): ") }} {{ ', '.join(checker_result) }}
{%- endif -%} 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 @@ {%- 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 %}{{ _("The checker fails on this tests: ") }} {{ ', '.join(checker_result) }}
+{{ _("Failed checker test(s): ") }} {{ ', '.join(checker_result) }}
{%- endif -%} {%- if errors %}{{ _('Errors:') }}
{% endif -%} {%- for error in errors -%} @@ -85,7 +85,7 @@