summaryrefslogtreecommitdiff
path: root/searx/templates/simple/preferences.html
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2021-04-29 14:37:12 +0200
committerGitHub <noreply@github.com>2021-04-29 14:37:12 +0200
commite5bcc3cbbecb067b0acd8a7c061d9a16453381ed (patch)
tree14b280ae6e41ebe71057cc4203966a6d00e9dfb7 /searx/templates/simple/preferences.html
parent3c755688adbe771463b5730046ff9a42f2495c13 (diff)
parent8026ed0d3799e999fdae8e361d7f1478d4d8d52f (diff)
Merge pull request #40 from searxng/link-to-stats
[mod] engine errors: link to the stats to create an github issue
Diffstat (limited to 'searx/templates/simple/preferences.html')
-rw-r--r--searx/templates/simple/preferences.html14
1 files changed, 11 insertions, 3 deletions
diff --git a/searx/templates/simple/preferences.html b/searx/templates/simple/preferences.html
index c7c379618..3e0f6d4cd 100644
--- a/searx/templates/simple/preferences.html
+++ b/searx/templates/simple/preferences.html
@@ -25,6 +25,12 @@
<p><a href="{{about.website}}" rel="noreferrer">{{about.website}}</a></p>
{%- if about.wikidata_id -%}<p><a href="https://www.wikidata.org/wiki/{{about.wikidata_id}}" rel="noreferrer">wikidata.org/wiki/{{about.wikidata_id}}</a></p>{%- endif -%}
{%- if search_engine.enable_http %}<p>{{ icon('exclamation-sign', 'No HTTPS') }}{{ _('No HTTPS')}}</p>{% endif -%}
+ {%- if reliabilities[search_engine.name].errors -%}
+ <a href="{{ url_for('stats', engine=search_engine.name|e) }}" title="{{ _('View error logs and submit a bug report') }}">
+ {{ _('View error logs and submit a bug report') }}
+ </a>
+ {%- endif -%}
+
</div>
{%- endif -%}
{%- endmacro %}
@@ -63,9 +69,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>