From 8026ed0d3799e999fdae8e361d7f1478d4d8d52f Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Wed, 28 Apr 2021 17:54:43 +0200 Subject: [mod] UI: engine pref-page, about toolbox: add link to stats In the preference page, in the 'about' toolbox of an engine, add a link to the stats page of the engine, if the engine had one or more errors. Condition is:: reliabilities[].errors Signed-off-by: Markus Heiser --- searx/templates/simple/preferences.html | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'searx/templates/simple') diff --git a/searx/templates/simple/preferences.html b/searx/templates/simple/preferences.html index 76d56675b..3e0f6d4cd 100644 --- a/searx/templates/simple/preferences.html +++ b/searx/templates/simple/preferences.html @@ -25,6 +25,12 @@

{{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 -%} + + {{ _('View error logs and submit a bug report') }} + + {%- endif -%} + {%- endif -%} {%- endmacro %} -- cgit v1.2.3-54-g00ecf