{% load i18n tz %} {% if show_dai_history %}
{% translate "Historique des tests DAI (CTV/OTV-5)" %} {{ test_sessions|length }}
{% translate "Seuil de conformité :" %} ≤ 30 s
{% if test_sessions %}
{% for ddef in detection_defs %} {% endfor %} {% for session in test_sessions %} {% for res in session.results %} {% endfor %} {% endfor %}
{% translate "Date" %} {% translate "Intervention" %} {% translate "Équipe / Prestataire" %} {{ ddef.short_label }} {% translate "Bilan" %}
{% if session.date %} {{ session.date|timezone:"Europe/Paris"|date:"d/m/Y H:i" }} {% else %} — {% endif %} #{{ session.intervention.id }}
{{ session.intervention.title }}
{% if session.intervention.assigned_team %}
{{ session.intervention.assigned_team.name }}
{% endif %} {% if session.intervention.assigned_provider %}
{{ session.intervention.assigned_provider.name }}
{% endif %}
{% if res.detection == 'OK' %} {% if res.is_slow %} OK (>{{ session.threshold }}s) {% else %} OK {% endif %} {% elif res.detection == 'NOK' %} NOK {% elif res.detection == 'NA' %} N/A {% else %} — {% endif %} {% if res.detection_time_sec != None and res.detection_time_sec != '' %}
{{ res.detection_time_sec }} s {% if res.event_time %} ({{ res.event_time }}) {% endif %}
{% elif res.event_time %}
{{ res.event_time }}
{% endif %} {% if res.remark %}
{{ res.remark }}
{% endif %}
{% if session.tested_count > 0 %} {{ session.good_count }} / {{ session.tested_count }} {% else %} N/A {% endif %}
{% else %}

{% translate "Aucun test DAI (CTV/OTV-5) enregistré pour cette caméra." %}

{% endif %}
{% endif %}