{% extends "base.html" %} {% load i18n %} {% load django_bootstrap5 %} {% load bootstrap_icons %} {% load operations %} {% block title %}{% trans "Jobs" %}{% endblock %} {% block page_heading %}{% trans "Jobs" %}{% endblock page_heading %} {% block content %} {% if worker_unavailable %}
| {% trans "Job" %} | {% trans "Resource" %} | {% if request.user.is_superuser %}{% trans "User" %} | {% endif %}{% trans "State" %} |
|---|---|---|---|
|
{{ row.label }}
{% if op.state in active_states %}
{% if row.phase or op.progress_total %}
{{ row.phase }}
{% if op.progress_total %}
{% if row.phase %}·{% endif %}
{% if op.kind in bytes_kinds %}{{ op.progress_done|default:0|filesizeformat }} / {{ op.progress_total|filesizeformat }}{% else %}{{ op.progress_done|default:0 }} / {{ op.progress_total }}{% endif %}
{% endif %}
{% endif %}
{% if op.progress_total %}
{% widthratio op.progress_done|default:0 op.progress_total 100 as percent %}
{{ row.error|truncatechars:80 }}
{% endif %}
{{ op.created_at|date:"Y-m-d H:i:s T" }}{% if request.user.is_superuser %} · {{ row.username }}{% endif %}
{# below md the hidden columns show here #}
{{ row.resource_label|wrap_at_slash }}
|
{{ row.resource_label|wrap_at_slash }} | {% if request.user.is_superuser %}{{ row.username }} | {% endif %}{% include "operations/state_badge.html" with state=op.state %} |