{% extends "base.html.twig" %} {% block content %}

{% set today = "now" | date("Y-m-d") %} {% if today == date %} {{ "Today's detected species" | trans }} {% else %} {{ "Detected species on" | trans }} {{ date | format_datetime("full", "none") }} {% endif %}

{% include "today/calendar.html.twig" %} {# Display a list of records if any, else, print message #} {% if results is defined and results | length > 0 %} {% else %}

{{ "No species detected this day" | trans }}

{% endif %} {% endblock %}