{% extends "base.html.twig" %} {% block content %} {% if results is defined and results | length > 0 %} {% set taxon = results["taxon"] %}

{% set today = "now" | date("Y-m-d") %} {% if today == date %} {{ "Today's contact for" | trans }} {% else %} {{ "Contact on " | trans }} {{ date | format_datetime("full", "none") }} {{ " for " | trans }} {% endif %} {{ taxon["scientific_name"] }} ( {{ taxon["common_name"] }} )

{% set stat = results["stat"][0] %}

{{ "Stats" | trans }}

{{ "Contact count:" | trans }} {{ stat["contact_count"] }}
{{ "Max confidence" | trans }} {{ stat["max_confidence"] }}
{% set records = results["records"] %}

{{ "Contact records" | trans }}

{% if records is defined and records | length > 0 %} {% for record in records %} {% endfor %}
{{ "Filename" | trans }} {{ "Time" | trans }} {{ "Confidence" | trans }} {{ "Audio" | trans }}
{{ record["audio_file"] }} {{ record["date"] | date("H:m") }} {{ record["confidence"] }}
{% else %}

{{ "No records this day for this species" | trans }}

{% endif %}
{% endif %} {% endblock %}