{% extends "base.html" %} {% block title %}{{ session.session_label or 'Session' }} — {{ project.name }}{% endblock %} {% block content %}

{{ session.session_label or ('Session ' + session.id[:8] + '…') }}

{% if location %}

{{ location.name }}{% if unit %} · {{ unit.id }}{% endif %}

{% endif %}
{% if session.status == 'completed' %} Completed {% elif session.status == 'recording' %} Recording {% endif %}

Session Info

Label
{{ session.session_label or '—' }}
Location
{{ location.name if location else '—' }}
Period
{% set PLABELS = {'weekday_day':'Weekday Day','weekday_night':'Weekday Night','weekend_day':'Weekend Day','weekend_night':'Weekend Night'} %} {{ PLABELS.get(session.period_type, '—') }}
{% if effective_range %}
Effective
{{ effective_range }}
{% else %} {% endif %} {% if session.started_at %}
Started
{{ session.started_at|local_datetime }}
{% endif %} {% if session.stopped_at %}
Ended
{{ session.stopped_at|local_datetime }}
{% endif %} {% if session.duration_seconds %}
Duration
{{ session.duration_seconds // 3600 }}h {{ (session.duration_seconds % 3600) // 60 }}m
{% endif %} {% if session.device_model %}
Device Model
{{ session.device_model }}
{% endif %} {% if session_meta.get('store_name') %}
Store Name
{{ session_meta.store_name }}
{% endif %} {% if session_meta.get('serial_number') %}
Serial #
{{ session_meta.serial_number }}
{% endif %}

Edit Session

Data Files ({{ files|length }})

{% if files %}
{% for f in files %} {% set fname = f.file_path.split('/')[-1] %} {% set is_rnd = fname.lower().endswith('.rnd') %} {% set is_leq = '_leq_' in fname.lower() or fname.lower().startswith('au2_') %}
{% if is_rnd %} {% else %} {% endif %}
{{ fname }}
{{ f.file_type | upper }} {% if f.file_size_bytes %} {{ (f.file_size_bytes / 1024) | round(1) }} KB {% endif %} {% if is_leq %}Leq{% endif %}
{% if is_rnd %} View {% if is_leq %} {% endif %} {% endif %} Download
{% endfor %}
{% else %}

No files found for this session.

{% endif %}

Report Actions

{% if session.status == 'completed' %} {% set has_rnd = files | selectattr('file_type', 'equalto', 'rnd') | list | length > 0 %} {% if has_rnd %}

Use the Combined Report Wizard to generate an Excel report for this session, or click View on a Leq file above to access per-file reporting. {% if session.period_start_hour is not none %}
Period window {{ session.period_start_hour }}:00–{{ session.period_end_hour }}:00 will be applied. {% endif %}

Go to Combined Report Wizard
{% else %}

No .rnd files found — upload data to generate a report.

{% endif %} {% else %}

Reports are available after the session is completed.

{% endif %}
{% endblock %}