SearXNG is a free internet metasearch engine which aggregates results from various search services and databases. Users are neither tracked nor profiled.
Python bingbravedegoogleduckduckgogooglemetasearchprivacypythonqwantsearchsearch-enginesearxsearxngstartpageyahoo
[mod] engine errors: link to the stats to create an github issue
Alexandre Flament34bced29ae8c
diff --git a/searx/templates/oscar/messages/no_results.html b/searx/templates/oscar/messages/no_results.htmlindex 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 %}<div class="alert alert-danger fade in" role="alert"><p><strong class="lead">{{ icon('remove-sign') }} {{ _('Error!') }}</strong> {{ _('Engines cannot retrieve results.') }}</p>+ {%- for engine_name, error_type in unresponsive_engines -%}<p>- {% for engine_name, error_type in unresponsive_engines %}- {{ engine_name }} ({{ error_type }}){% if not loop.last %}, {% endif %}- {% endfor %}+ {{- engine_name }} (+ <a href="{{ url_for('stats', engine=engine_name|e) }}" title="{{ _('View error logs and submit a bug report') }}">+ {{- error_type -}}+ </a> ){{- '' -}}</p>+ {%- endfor -%}<p><small>{{ _('Please, try again later or find another searx instance.') }} (<a href="{{ brand.PUBLIC_INSTANCES }}">{{ _('Public instances') }}</a>)</small></p></div>{% else %}diff --git a/searx/templates/oscar/preferences.html b/searx/templates/oscar/preferences.htmlindex 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 %}<td class="{{ css_align_class }} {{ label }}">{{- "" -}}- <span aria-labelledby="{{engine_name}}_reliablity">- {%- if reliabilities[engine_name].checker %}{{ icon('exclamation-sign', 'The checker fails on the some tests') }}{% endif %} {{ r -}}- </span>{{- "" -}}+ <a href="{{ url_for('stats', engine=engine_name|e) }}">{{- "" -}}+ <span aria-labelledby="{{engine_name}}_reliablity">+ {%- if reliabilities[engine_name].checker %}{{ icon('exclamation-sign', 'The checker fails on the some tests') }}{% endif %} {{ r -}}</a>+ </span>{{- "" -}}+ </a>{{- "" -}}<div class="engine-tooltip text-left" role="tooltip" id="{{engine_name}}_reliablity">{%- if checker_result -%}<p>{{ _("Failed checker test(s): ") }} {{ ', '.join(checker_result) }}</p>diff --git a/searx/templates/oscar/results.html b/searx/templates/oscar/results.htmlindex df2d42430..ec84e489b 100644--- a/searx/templates/oscar/results.html+++ b/searx/templates/oscar/results.html@@ -31,7 +31,12 @@<div class="alert alert-danger fade in" role="alert"><p>{{ _('Engines cannot retrieve results') }}:</p>{%- for engine_name, error_type in unresponsive_engines -%}- {{- engine_name }} ({{ error_type }}){% if not loop.last %}, {% endif %}{{- "" -}}+ <p>{{- '' -}}+ {{- engine_name }} (+ <a href="{{ url_for('stats', engine=engine_name|e) }}" title="{{ _('View error logs and submit a bug report') }}">+ {{- error_type -}}+ </a> ){{- '' -}}+ </p>{%- endfor -%}</div>{%- endif %}diff --git a/searx/templates/simple/messages/no_results.html b/searx/templates/simple/messages/no_results.htmlindex df75ef228..b7f02167e 100644--- a/searx/templates/simple/messages/no_results.html+++ b/searx/templates/simple/messages/no_results.html@@ -2,11 +2,15 @@{% if unresponsive_engines %}<div class="dialog-error" role="alert"><p><strong>{{ _('Error!') }}</strong> {{ _('Engines cannot retrieve results.') }}</p>- <p>- {% for engine_name, error_type in unresponsive_engines %}- {{ engine_name }} ({{ error_type }}){% if not loop.last %}, {% endif %}- {% endfor %}+ {% for engine_name, error_type in unresponsive_engines %}+ <p>{{- '' -}}+ {{- engine_name }} (+ <a href="{{ url_for('stats', engine=engine_name|e) }}" title="{{ _('View error logs and submit a bug report') }}">+ {{- error_type -}}+ </a> ){{- '' -}}</p>+ {%- endfor %}+<p><small>{{ _('Please, try again later or find another searx instance.') }} (<a href="{{ brand.PUBLIC_INSTANCES }}">{{ _('Public instances') }}</a>) </small></p></div>{% else %}diff --git a/searx/templates/simple/preferences.html b/searx/templates/simple/preferences.htmlindex c7c379618..76d56675b 100644--- a/searx/templates/simple/preferences.html+++ b/searx/templates/simple/preferences.html@@ -63,9 +63,11 @@{% endif %}{% if checker_result or errors %}<td class="{{ label }}">{{- "" -}}- <span aria-labelledby="{{engine_name}}_reliablity">- {%- if reliabilities[engine_name].checker %}{{ icon('warning', 'The checker fails on the some tests') }}{% endif %} {{ r -}}- </span>{{- "" -}}+ <a href="{{ url_for('stats', engine=engine_name|e) }}">{{- "" -}}+ <span aria-labelledby="{{engine_name}}_reliablity">+ {%- if reliabilities[engine_name].checker %}{{ icon('warning', 'The checker fails on the some tests') }}{% endif %} {{ r -}}+ </span>{{- "" -}}+ </a>{{- "" -}}<div class="engine-tooltip" style="right: 12rem;" role="tooltip" id="{{engine_name}}_reliablity">{%- if checker_result -%}<p>{{ _("The checker fails on this tests: ") }} {{ ', '.join(checker_result) }}</p>diff --git a/searx/templates/simple/results.html b/searx/templates/simple/results.htmlindex 7ece6c7ad..c53529edd 100644--- a/searx/templates/simple/results.html+++ b/searx/templates/simple/results.html@@ -43,9 +43,13 @@{% if unresponsive_engines and results|length >= 1 %}<div class="dialog-error" role="alert"><p><strong>{{ _('Error!') }}</strong> {{ _('Engines cannot retrieve results') }}:</p>- <p>{% for engine_name, error_type in unresponsive_engines %}- {{- engine_name }} ({{- error_type -}}){% if not loop.last %}, {% endif %}- {% endfor %}</p>+ {%- for engine_name, error_type in unresponsive_engines -%}+ <p>{{- engine_name }} (+ <a href="{{ url_for('stats', engine=engine_name|e) }}" title="{{ _('View error logs and submit a bug report') }}">+ {{- error_type -}}+ </a> ){{- '' -}}+ </p>+ {% endfor %}</div>{% endif %}