{% load ccp %}
{% if job.is_active %} {{ job.get_status_display }} {{ job.message|default:"Waiting for a worker…" }}
{{ job.progress_percent }}% {% elif job.status == 'succeeded' %} Done {{ job.message }} {% if job.duration %}{{ job.duration|floatformat:1 }} s{% endif %} {% if job.warnings %}
{% for w in job.warnings %}
⚠ {{ w }}
{% endfor %}
{% endif %} {% elif job.status == 'cancelled' %} Cancelled The calculation was cancelled. {% else %} Failed {{ job.error|default:"The calculation failed." }} {% if job.result.errors %}
{% endif %} {% if job.result.traceback %}
Details
{{ job.result.traceback }}
{% endif %} {% endif %}