{% include "partial/head.html" %} {% include "partial/header.html" %}
/
{% set headers = ['Task ID', 'Name', 'Status', 'Worker', 'Started At', 'Finished At'] %} {% for header in headers %} {% endfor %} {% if tasks %} {% for task in tasks %} {% endfor %} {% else %} {% endif %}
{{ header }}
{{ task.id }} {{ task.name }} {% if task.status == 0 %}In progress {% elif task.status == 1 %}Completed {% elif task.status == 2 %}Failure {% elif task.status == 3 %}Queued {% else %}Unknown{% endif %} {{ task.worker }} {{ task.started_at.strftime('%Y-%m-%d %H:%M:%S') }} {{ task.finished_at.strftime('%Y-%m-%d %H:%M:%S') if task.finished_at else '-' }}
No tasks found
{% if pagination.total_pages > 1 %}
Showing {{ (pagination.page - 1) * pagination.per_page + 1 }} to {{ [pagination.page * pagination.per_page, pagination.total_count] | min }} of {{ pagination.total_count }} tasks
{% endif %}