From 34bced29ae8ca7aff69ef43ee34d265677e3a5a2 Mon Sep 17 00:00:00 2001 From: Alexandre Flament Date: Sun, 25 Apr 2021 14:19:35 +0200 Subject: [PATCH 1/2] [mod] engine errors: link to the stats to create an github issue --- searx/templates/oscar/messages/no_results.html | 9 ++++++--- searx/templates/oscar/preferences.html | 8 +++++--- searx/templates/oscar/results.html | 7 ++++++- searx/templates/simple/messages/no_results.html | 12 ++++++++---- searx/templates/simple/preferences.html | 8 +++++--- searx/templates/simple/results.html | 10 +++++++--- 6 files changed, 37 insertions(+), 17 deletions(-) diff --git a/searx/templates/oscar/messages/no_results.html b/searx/templates/oscar/messages/no_results.html index 82bf2f77a..7ad6423c5 100644 --- a/searx/templates/oscar/messages/no_results.html +++ b/searx/templates/oscar/messages/no_results.html @@ -2,11 +2,14 @@ {% if unresponsive_engines %} {% else %} diff --git a/searx/templates/oscar/preferences.html b/searx/templates/oscar/preferences.html index e8cae1ca5..6bf66617b 100644 --- a/searx/templates/oscar/preferences.html +++ b/searx/templates/oscar/preferences.html @@ -50,9 +50,11 @@ {% endif %} {% if checker_result or errors %} {{- "" -}} - - {%- if reliabilities[engine_name].checker %}{{ icon('exclamation-sign', 'The checker fails on the some tests') }}{% endif %} {{ r -}} - {{- "" -}} + {{- "" -}} + + {%- if reliabilities[engine_name].checker %}{{ icon('exclamation-sign', 'The checker fails on the some tests') }}{% endif %} {{ r -}} + {{- "" -}} + {{- "" -}} -

- {{ _('These settings are stored in your cookies, this allows us not to store this data about you.') }} +

+ {{ _('These settings are stored in your cookies, this allows us not to store this data about you.') }} {{ _("These cookies serve your sole convenience, we don't use these cookies to track you.") }}

- {{ _('Search URL of the currently saved preferences') }} - ({{ _('Note: specifying custom settings in the search URL can reduce privacy by leaking data to the clicked result sites.') }}): + {{ _('Search URL of the currently saved preferences') }} + ({{ _('Note: specifying custom settings in the search URL can reduce privacy by leaking data to the clicked result sites.') }}):

-
+ +
{% endblock %} 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 %}