{% extends "layouts/base.html" %} {% load static %} {% block title %}{{ template.name }} - Jingle Template Details - Stream Processor{% endblock %} {# Optional local styles to mirror your original palette accents #} {% block extra_head %} {% endblock %} {% block content %}

{{ template.name }} {% if template.is_active %} Active {% else %} Inactive {% endif %}

{% if template.description %} {{ template.description }} {% else %} Jingle template for {{ template.get_category_display|lower }} detection {% endif %}

Edit Template {% if template.is_active %} {% else %} {% endif %}
Template Information
Template Name
{{ template.name }}
Slug
{{ template.slug }}
Category
{{ template.get_category_display }}
Similarity Threshold
{{ template.similarity_threshold|floatformat:3 }}
Created By
{{ template.created_by.username }}
Created
{{ template.created_at|date:"M d, Y H:i" }}
{% if template.description %}
Description
{{ template.description }}
{% endif %}
Reference Image
{% if template.image_path %}
{{ template.name }}

{{ template.image_path }}

{% else %}

No reference image uploaded

{% endif %}
Recent Detections
View All Detections
{% if recent_detections %}
{% for detection in recent_detections %}
Detection {{ detection.id|truncatechars:8 }}
{{ detection.detection_time|date:"M d, Y H:i:s" }} {% if detection.session %} • Channel: {{ detection.session.channel.name }}{% endif %}
Confidence: {{ detection.confidence|floatformat:3 }}
{% endfor %}
{% else %}

No detections found for this template

{% endif %}
Quick Actions
Edit Template
Detection Statistics
Total Detections
{{ recent_detections|length }}
This Week
-
Average Confidence
-
Template Status
{% if template.is_active %} Active {% else %} Inactive {% endif %}
Detection Settings
Similarity Threshold
{{ template.similarity_threshold|floatformat:3 }}
{% if template.similarity_threshold < 0.15 %} Very sensitive (may have false positives) {% elif template.similarity_threshold < 0.25 %} Balanced sensitivity (recommended) {% elif template.similarity_threshold < 0.50 %} Less sensitive (fewer false positives) {% else %} Very strict (may miss detections) {% endif %}
Category
{{ template.get_category_display }}
Image Path
{{ template.image_path|default:"Not set" }}
{% endblock %}