2023-04-23 11:19:21 +00:00
|
|
|
<div id="engines_msg">
|
2023-09-18 19:41:52 +00:00
|
|
|
{% if not results and not answers %}
|
|
|
|
<details class="sidebar-collapsable" open>
|
2024-08-22 17:14:24 +00:00
|
|
|
<summary class="title" id="engines_msg-title">{{ _('Messages from the search engines') }}</summary>
|
2023-09-18 19:41:52 +00:00
|
|
|
{% else %}
|
2023-05-27 22:37:25 +00:00
|
|
|
<details class="sidebar-collapsable">
|
2024-08-22 17:14:24 +00:00
|
|
|
<summary class="title" id="engines_msg-title">{{ _('Response time') }}: {{ max_response_time | round(1) }} {{ _('seconds') }}</summary>
|
2023-09-18 19:41:52 +00:00
|
|
|
{% endif %}
|
2024-08-22 17:14:24 +00:00
|
|
|
<table class="engine-stats" id="engines_msg-table">
|
|
|
|
{%- for engine_name, error_type in unresponsive_engines -%}
|
|
|
|
<tr>
|
|
|
|
<td class="engine-name">
|
|
|
|
<a href="{{ url_for('stats', engine=engine_name|e) }}"
|
|
|
|
title="{{ _('View error logs and submit a bug report') }}">
|
|
|
|
{{- engine_name -}}
|
|
|
|
</a>
|
|
|
|
</td>
|
|
|
|
<td class="response-error">{{- error_type -}}</td>
|
|
|
|
</tr>
|
|
|
|
{%- endfor -%}
|
|
|
|
{%- for engine_name, response_time in timings -%}
|
|
|
|
<tr>
|
|
|
|
<td class="engine-name"><a href="{{ url_for('stats', engine=engine_name|e) }}">{{ engine_name }}</a></td>
|
|
|
|
<td class="response-time">
|
|
|
|
<div class="bar-chart-value">{{- response_time | round(1) -}}</div>
|
|
|
|
<div class="bar-chart-graph" aria-labelledby="{{engine_name}}_time" aria-hidden="true">
|
|
|
|
<div class="bar-chart-bar bar{{ (100 * response_time / max_response_time) | round | int }}"></div>
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{%- endfor -%}
|
|
|
|
</table>
|
2023-04-23 11:19:21 +00:00
|
|
|
</details>
|
|
|
|
</div>
|