{% extends "oscar/base.html" %} {% block styles %} {% endblock %} {% block title %}{{ _('stats') }} - {% endblock %} {%- macro th_sort(column_order, column_name) -%} {% if column_order==sort_order %} {{ column_name }} {{ icon('chevron-down') }} {% else %} {{ column_name }} {% endif %} {%- endmacro -%} {% block content %}

{{ _('Engine stats') }}

{% if not engine_stats.get('time') %}
{% include 'oscar/messages/no_data_available.html' %}
{% else %} {% for engine_stat in engine_stats.get('time', []) %} {% endfor %}
{{ th_sort('name', _("Engine name")) }} {{ th_sort('score', _('Scores')) }} {{ th_sort('result_count', _('Result count')) }} {{ th_sort('time', _('Response time')) }} {{ th_sort('reliability', _('Reliability')) }}
{{ engine_stat.name }} {% if engine_stat.score %} {{ engine_stat.score|round(1) }} {% endif %} {%- if engine_stat.result_count -%} {{- engine_stat.result_count | int -}}{{- "" -}} {%- endif -%} {%- if engine_stat.total -%} {{- engine_stat.total | round(1) -}}{{- "" -}} {{- "" -}} {%- endif -%} {{ engine_reliabilities.get(engine_stat.name, {}).get('reliablity') }}
{% endif %}
{% endblock %}