{% 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 %}
{% bs_icon 'exclamation-triangle' %} {% trans "Worker unavailable, last seen" %} {% if worker_last_seen %}{{ worker_last_seen|date:"M d H:i:s" }}{% else %}{% trans "never" %}{% endif %}
{% endif %} {% if request.user.is_superuser %} {% endif %} {% if not rows %}
{% bs_icon 'exclamation-triangle' %} {% trans "No jobs" %}
{% else %}
{% if request.user.is_superuser %}{% endif %} {% for op, row in rows %} {% if request.user.is_superuser %}{% endif %} {% endfor %}
{% trans "Created" %} {% trans "Job" %} {% trans "State" %} {% trans "Resource" %}{% trans "User" %}
{{ op.created_at|date:"M d H:i:s" }} {{ row.label }} {% if op.state in active_states and op.phase %}
{% translate op.phase %}
{% elif op.state == "failed" or op.state == "uncertain" %}
{{ op.error|truncatechars:80 }}
{% endif %} {# below md the hidden columns show here #}
{{ row.resource_label|wrap_at_slash }}
{{ op.created_at|date:"M d H:i:s" }}{% if request.user.is_superuser %} · {{ row.username }}{% endif %}
{% include "operations/state_badge.html" with state=op.state %} {{ row.resource_label|wrap_at_slash }}{{ row.username }}
{% if page.has_other_pages %} {% bootstrap_pagination page extra=page_query %} {% endif %} {% endif %}
{% endblock %} {% block script %} {% if follow %}{% include "operations/follow_active.html" %}{% endif %} {% endblock script %}