{% 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 %} {% trans "Jobs" %} {% endblock page_heading_extra %} {% block content %}
{{ job.resource_label }} {% include "operations/state_badge.html" with state=op.state %}
{% trans "User" %}: {{ job.username }}
{% if job.phase or op.progress_total or job.cancellable or job.error or job.result.links or job.result.warning or job.result.left_behind or job.resolution %}
{% if job.phase or job.cancellable %}
{{ job.phase }} {% if job.cancellable %}
{% csrf_token %}
{% endif %}
{% endif %} {% if op.progress_total %} {% widthratio op.progress_done|default:0 op.progress_total 100 as percent %}
{% if progress_bytes %}{{ op.progress_done|default:0|filesizeformat }} / {{ op.progress_total|filesizeformat }}{% else %}{{ op.progress_done|default:0 }} / {{ op.progress_total }}{% endif %} {{ percent }}%
{% endif %} {% if job.error %} {% endif %} {% if job.result.links %}

{% trans "Results" %}

{% endif %} {% if job.result.warning %} {% endif %} {% if job.result.left_behind %}

{% trans "Left behind" %}

{% endif %} {% if job.resolution %}

{% trans "Resolution" %}

{{ job.resolution|state_label }}: {{ job.resolution_note }}

{% endif %}
{% endif %}
  1. {% bs_icon 'plus-circle' %} {% trans "Created" %} {{ op.created_at|date:"Y-m-d H:i:s T" }}
  2. {% if op.started_at %}
  3. {% bs_icon 'play-circle' %} {% trans "Started" %} · {% blocktrans with time=op.created_at|duration:op.started_at %}queued for {{ time }}{% endblocktrans %} {{ op.started_at|date:"Y-m-d H:i:s T" }}
  4. {% endif %} {% if op.finished_at %}
  5. {% bs_icon 'stop-circle' %} {% trans "Finished" %}{% if op.started_at %} · {% blocktrans with time=op.started_at|duration:op.finished_at %}ran for {{ time }}{% endblocktrans %}{% endif %} {{ op.finished_at|date:"Y-m-d H:i:s T" }}
  6. {% endif %}
{% if request.user.is_superuser and op.state == "uncertain" %}
{% trans "Resolve" %} {% trans "Record what you checked; the job is marked succeeded or failed." %}
{% csrf_token %}
{% endif %} {% endblock %} {% block script %} {% if follow %}{% include "operations/follow_active.html" %}{% endif %} {% endblock script %}