{% extends "vantage/base.html" %} {% load static vantage i18n %} {% block head %}{% endblock %} {% block content %}

{{ page_title }}

{{ page_description }}

{% comment %} The backend is named on the page, not buried in the health check. "Running in the background" is simply false on a project with no worker — the work happened in the request that started it — and letting the page imply otherwise is how someone concludes their queue is broken when they never had one. {% endcomment %}

{% icon "activity" %} {% if backend.deferred %} {% blocktranslate with label=backend.label %}Queued through {{ label }}.{% endblocktranslate %} {% else %} {{ backend.hint }} {% endif %}

{% if jobs %} {% if showing_everyone %}{% endif %} {% for row in jobs %} {% if showing_everyone %}{% endif %} {% endfor %}
{% translate "Started" %}{% translate "Who" %}{% translate "Action" %} {% translate "Records" %} {% translate "Progress" %} {% translate "Status" %}
{{ row.job.actor_repr|default:"—" }} {{ row.job.action_label|default:row.job.action_name }} {{ row.job.resource_key }} {{ row.job.total|stringformat:"d" }} {% include "vantage/partials/job_progress.html" with job=row.job status_url=row.status_url errors_url=row.errors_url %} {% comment %} Colour carries the status, never alone — the word is always present, which is WCAG 1.4.1 and also the only thing that survives a printout. {% endcomment %} {{ row.job.get_status_display }} {% if row.job.error %}

{{ row.job.error }}

{% endif %}
{% else %} {# Nothing has been queued yet — not an error, and there is nothing to create here. #}
{% icon "activity" class="v-empty-icon" %}

{% translate "No background jobs yet." %}

{% blocktranslate trimmed %} A bulk action appears here when the selection is large enough to be worth moving off the request. Smaller ones run immediately and are recorded in the audit log instead. {% endblocktranslate %}

{% endif %}
{% if page.paginator.num_pages > 1 %}
{% blocktranslate with start=page.start_index end=page.end_index total=paginator.count %}{{ start }}–{{ end }} of {{ total }}{% endblocktranslate %}
{% if page.has_previous %} {% translate "Previous" %} {% else %} {% endif %} {% if page.has_next %} {% translate "Next" %} {% else %} {% endif %}
{% endif %} {% endblock %} {% block scripts %}{% endblock %}