{% load i18n chassis_admin %}

{{ history.title }} {% if history.percentage is not None %}{{ history.percentage|floatformat:2 }}%{% endif %}

{% if history.period_label %}

{{ history.period_label }}

{% endif %} {% if history.started_at and history.ended_at %}

– {{ history.timezone_label }} {% if history.coverage_percentage is not None %} {% translate 'Покрытие измерениями' %}: {{ history.coverage_percentage|floatformat:2 }}% {% endif %}

{% endif %}

{% translate 'Интервалы проверки' %}

{% with samples=history.visible_samples %} {% if history.is_truncated %}

{% translate 'Показаны последние 200 интервалов. Процент и покрытие относятся ко всему периоду.' %}

{% endif %}
{% for sample in samples %} {% empty %} {% endfor %}
{% translate 'Начало' %}
{% translate 'Конец' %}
{% translate 'Состояние' %}
{% translate 'Причина' %}
{% if sample.state == 'up' %}{% chassis_badge sample.state_label 'success' %} {% elif sample.state == 'down' %}{% chassis_badge sample.state_label 'danger' %} {% else %}{% chassis_badge sample.state_label 'secondary' %}{% endif %} {{ sample.reason|default:'—' }}
{% translate 'Нет измерений доступности.' %}
{% endwith %}