{% if sessions %}
{% for session_data in sessions %} {% set session = session_data.session %} {% set unit = session_data.unit %} {% set location = session_data.location %} {% set files = session_data.files %} {% if files %}
{% set meta = session.session_metadata|fromjson if session.session_metadata else {} %} {% set is_manual = meta.get('source') in ('manual_upload', 'bulk_upload') %}
{% if location %}{{ location.name }}{% else %}Unknown Location{% endif %} {% if session.started_at %} — {% if session.stopped_at and not same_date(session.started_at, session.stopped_at) %} {{ session.started_at|local_date }} to {{ session.stopped_at|local_date }} {% else %} {{ session.started_at|local_date }} {% endif %} {% endif %}
{% if is_manual %} {% set store = meta.get('store_name') %} Manual upload{% if store %} — Store {{ store }}{% endif %} {% elif unit %} {{ unit.id }} {% endif %} {{ files|length }} file{{ 's' if files|length != 1 else '' }}
{{ session.status or 'unknown' }}
{% endif %} {% endfor %}
{% else %}

No files downloaded yet

Use the FTP browser above to download files from your sound level meters

{% endif %}