{% extends "base.html" %} {% load i18n %} {% load bootstrap_icons %} {% load operations %} {% block title %}{{ job.label }}{% endblock %} {% block page_heading %}{{ job.label }}{% endblock page_heading %} {% block page_heading_extra %}
{% if job.cancellable %}
{% csrf_token %}
{% endif %} {% trans "Jobs" %}
{% endblock page_heading_extra %} {% block content %}
{% if op.error %} {% endif %}
{% trans "Resource" %}
{{ job.resource_label }}
{% trans "User" %}
{{ job.username }}
{% trans "State" %}
{% include "operations/state_badge.html" with state=op.state %}
{% if op.phase %}
{% trans "Phase" %}
{% translate op.phase %}
{% endif %} {% if op.progress_total %} {% widthratio op.progress_done|default:0 op.progress_total 100 as percent %}
{% trans "Progress" %}
{{ percent }}%
{% if progress_bytes %}{{ op.progress_done|default:0|filesizeformat }} / {{ op.progress_total|filesizeformat }}{% else %}{{ op.progress_done|default:0 }} / {{ op.progress_total }}{% endif %}
{% endif %}
{% trans "Created" %}
{{ op.created_at|date:"M d H:i:s" }}
{% if op.started_at %}
{% trans "Started" %}
{{ op.started_at|date:"M d H:i:s" }}
{% endif %} {% if op.finished_at %}
{% trans "Finished" %}
{{ op.finished_at|date:"M d H:i:s" }}
{% endif %} {% if job.result.left_behind %}
{% trans "Left behind" %}
    {% for item in job.result.left_behind %}
  • {{ item }}
  • {% endfor %}
{% endif %} {% if job.result.warning %}
{% trans "Warning" %}
{{ job.result.warning }}
{% endif %} {% if job.result.links %}
{% trans "Results" %}
{% endif %} {% if job.resolution %}
{% trans "Resolution" %}
{{ job.resolution|state_label }}: {{ job.resolution_note }}
{% endif %}
{% if request.user.is_superuser and op.state == "uncertain" %}
{% trans "Resolve" %}
{% csrf_token %}
{% endif %}
{% endblock %} {% block script %} {% if follow %}{% include "operations/follow_active.html" %}{% endif %} {% endblock script %}