{# Recent Activity Partial (Bootstrap 5) #}
{% if recent_detections or recent_ad_breaks %} {# Detections (limit 5) #} {% for detection in recent_detections|slice:":5" %}

Jingle Detected

{{ detection.template.name }} on {{ detection.session.channel.name }}

{{ detection.detection_time|timesince }} ago {{ detection.confidence_score|floatformat:3 }}

{% endfor %} {# Ad breaks (limit 3) #} {% for ad_break in recent_ad_breaks|slice:":3" %}

{% if ad_break.end_time %}Ad Break Completed{% else %}Ad Break Started{% endif %}

{{ ad_break.channel_name }} {% if ad_break.duration_seconds %} - {{ ad_break.duration_seconds }}s{% endif %}

{{ ad_break.start_time|timesince }} ago {{ ad_break.status|title }}

{% endfor %} {# View all link #}
View all activity
{% else %} {# Empty state #}

No recent activity

Activity will appear here when streams are active

{% endif %}