{% comment %} Partial template: task table body rows. Rendered by task_list_partial view and swapped into the via HTMX. Also used by task_list.html to render the initial set of rows. Context variables ----------------- tasks Page — paginated TaskSnapshot queryset (page object) status_filter str — active status filter value (may be empty) search_query str — active search query (may be empty) {% endcomment %} {% load i18n %} {% if tasks.object_list %} {% for task in tasks %} {{ task.task_name }} {% if task.status == 'SUCCESSFUL' %} {{ task.get_status_display }} {% elif task.status == 'FAILED' %} {{ task.get_status_display }} {% elif task.status == 'RUNNING' %} {{ task.get_status_display }} {% else %} {{ task.get_status_display }} {% endif %} {{ task.backend }} {% if task.duration_seconds is not None %} {{ task.duration_seconds|floatformat:2 }}s {% if task.is_slow %} {% endif %} {% else %} — {% endif %} {{ task.attempts }} {{ task.updated_at|date:"Y-m-d H:i:s" }} {% endfor %} {% else %} {% if status_filter or search_query %} No tasks match the current filter. {% else %} No task snapshots recorded yet. {% endif %} {% endif %}