diff options
| author | Alexandre Flament <alex@al-f.net> | 2021-04-29 14:37:12 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-29 14:37:12 +0200 |
| commit | e5bcc3cbbecb067b0acd8a7c061d9a16453381ed (patch) | |
| tree | 14b280ae6e41ebe71057cc4203966a6d00e9dfb7 /searx/templates/simple/results.html | |
| parent | 3c755688adbe771463b5730046ff9a42f2495c13 (diff) | |
| parent | 8026ed0d3799e999fdae8e361d7f1478d4d8d52f (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/results.html')
| -rw-r--r-- | searx/templates/simple/results.html | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/searx/templates/simple/results.html b/searx/templates/simple/results.html index 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 %} |