From 65c29081cc3debad9b77194cb917f5b04ea4ac72 Mon Sep 17 00:00:00 2001 From: Alexandre Flament Date: Thu, 22 Apr 2021 12:14:11 +0200 Subject: [mod] update /stats --- searx/templates/oscar/stats.html | 86 ++++++++++++++++++++++++++++++---------- 1 file changed, 66 insertions(+), 20 deletions(-) (limited to 'searx/templates/oscar/stats.html') diff --git a/searx/templates/oscar/stats.html b/searx/templates/oscar/stats.html index 0573bf65f..0851343ce 100644 --- a/searx/templates/oscar/stats.html +++ b/searx/templates/oscar/stats.html @@ -16,30 +16,76 @@

{{ _('Engine stats') }}

- {% for stat_name,stat_category in stats %} -
-

{{ stat_name }}

-
- {% for engine in stat_category %} -
-
{{ engine.name }}
-
-
-
- {{ '%.02f'|format(engine.avg) }} -
-
+
+
+ {% if not engine_stats.get('time') %} +
+ {% include 'oscar/messages/no_data_available.html' %}
-
- {% endfor %} - {% if not stat_category %} -
- {% include 'oscar/messages/no_data_available.html' %} -
+ {% else %} + + + + + + + + {% for engine_stat in engine_stats.get('time', []) %} + + + + + + + {% endfor %} +
{{ _("Engine name") }}{{ _('Scores') }}{{ _('Number of results') }}{{ _('Response time') }}
{{ engine_stat.name }} + {{ engine_stat.score|round(1) }} + + + {{- engine_stat.result_count | int -}}{{- "" -}} + {{- "" -}} + + {{- engine_stat.total | round(1) -}}{{- "" -}} + {{- "" -}} + +
{% endif %}
- {% endfor %}
{% endblock %} -- cgit v1.2.3-54-g00ecf