{{ 'Quick Stats'|trans }}
-
{{ 'Most recorded species'|trans }}:{% if
stats['most-recorded-species'] is defined
and (stats['most-recorded-species']|length) > 0 %}
{{ stats['most-recorded-species']['scientific_name'] }}
(
{{ stats['most-recorded-species']['common_name'] }}
)
{{ 'with'|trans }}
{{ stats['most-recorded-species']['contact_count'] }}
{{ 'contacts'|trans }}.
{% else %}
{{ 'No species in database.'|trans }}
{% endif %}
-
{{ 'Last detected species'|trans }}:{% if
stats['last-detected-species'] is defined
and (stats['last-detected-species']|length) > 0 %}
{{ stats['last-detected-species']['scientific_name'] }}
(
{{ stats['last-detected-species']['common_name'] }}
)
{{ 'with'|trans }}
{{ stats['last-detected-species']['confidence'] }}
{{ 'AI confidence'|trans }}
{% set date = stats['last-detected-species']['date'] %}
{% if (date|date('Y-m-d')) == ('now'|date('Y-m-d')) %}
{{ 'today'|trans }}
{% else %}
{{ 'on'|trans }}
{{ date|format_datetime('full', 'none') }}
{% endif %}at
{{ date|date('H:i') }}
.
{% else %}
{{ 'No species in database'|trans }}
{% endif %}
-
{% set today = 'now'|date('Y-m-d') %}
{% set date = app.request.get('on') %}
{% if
stats['number-of-species-detected'] is defined
and stats['number-of-species-detected'] > 0 %}
{% if today == date %}
{{ 'Number of species detected today: '|trans }}
{% else %}
{{ 'Number of species detected on '|trans }}
{{ date|format_datetime('full', 'none') }}:
{% endif %}
{{ stats['number-of-species-detected'] }}.
{% else %}
{# {{ 'No species detected today'|trans }} #}
{% if today == date %}
{{ 'No species detected today.'|trans }}
{% else %}
{{ 'No species detected on '|trans }}
{{ date|format_datetime('full', 'none') }}
{% endif %}
{% endif %}