{% load asset_filters %} {% with pills=asset|schedule_pills %}
{% if is_active %}{% endif %} {% if asset.mimetype == 'image' %} {% elif asset.mimetype == 'video' %} {% else %} {% endif %} {{ asset.name }} {% if pills %} {% for pill in pills %} {% if pill.kind == 'all' %} {% elif pill.kind == 'time' %} {% else %}{% endif %} {{ pill.label }} {% endfor %} {% endif %}
{% with window=asset|schedule_window %}

{{ window.primary }}

{% if window.secondary %}

{{ window.secondary }}

{% endif %}
{% endwith %} {{ asset.duration|humanize_duration }} {% if asset.is_processing %} Processing {% elif asset.metadata.error_message %} {% comment %} Processing failed and the celery task wrote metadata.error_message via _NormalizeAssetTask.on_failure. The pill is a button — clicking it opens the Edit Asset modal which renders the full message + any attached ffmpeg recipe as a copyable block. Title attribute is kept as a hover preview for desktop operators; the click path is the canonical action (works on touch, supports copy). {% endcomment %} {% else %}
{% csrf_token %}
{% endif %}
{% endwith %}