{% if tasks|length == 0 %}

No tasks yet.

{% else %} {% for t in tasks %}
{{ t.title }}
{% if t.status == 'pending' %}Queued {% elif t.status == 'processing' %}Processing on Facebook {% elif t.status == 'completed' %}Done {% elif t.status == 'failed' %}Failed {% else %}{{ t.status }}{% endif %}
Video ID: {{ t.video_id or "—" }} Privacy: {{ t.privacy }}
{% if t.status == 'completed' %}
{% endif %} {% if t.status == 'failed' %}
{{ t.error_message or "Unknown error" }}
{% endif %}
{% endfor %} {% endif %}