{% load helpers %} {% load i18n %} {% comment %} One pass's most recent run, and the Jobs that hold the pass back. Context: - job: The Job if the user may view it, or None - hidden: Whether the pass has a most recent Job the user may not view - running: The Jobs the user may view that show Running and hold the pass back, newest first, or absent - queued: Whether a Job of the pass is pending, scheduled or running, which holds it back, or absent {% endcomment %} {% if job %} {% trans "Job" %} #{{ job.pk }} {% badge job.get_status_display bg_color=job.get_status_color %} {{ job.created|date:"SHORT_DATETIME_FORMAT" }} {% elif hidden %} {% trans "Not visible to you" %} {% else %} {% trans "Never run" %} {% endif %} {% for blocker in running %}
{% if blocker != job %} {% trans "Job" %} #{{ blocker.pk }} {% badge blocker.get_status_display bg_color=blocker.get_status_color %} {% endif %} {% trans "If it still shows Running after its execution stops, see Stale running Jobs in the migration guide." %}
{% empty %} {% if queued %}
{% trans "A Job for this pass is still queued or running." %}
{% endif %} {% endfor %}