{% load i18n ui %}{# Status badge for a job. Parameter: job. The label always says the status; colour and icon only repeat it. #} {% if job.status == "succeeded" %}{% include "components/badge.html" with label=job.get_status_display kind="success" icon="check-circle" %}{% elif job.status == "failed" %}{% include "components/badge.html" with label=job.get_status_display kind="danger" icon="error" %}{% elif job.status == "running" %}{% include "components/badge.html" with label=job.get_status_display kind="info" icon="refresh" %}{% elif job.status == "queued" %}{% include "components/badge.html" with label=job.get_status_display kind="" icon="clock" %}{% else %}{% include "components/badge.html" with label=job.get_status_display kind="warning" icon="close" %}{% endif %}