{% load helpers %} {% load i18n %} {% load render_table from django_tables2 %} {% comment %} The live part of one run's result page. Served on its own to an htmx poll, so it is the whole swap target and carries the polling attributes itself. A run that has reached a terminal state polls no further. Context: see NetBoxScriptResultView. {% endcomment %}

{% trans "Run" %}

{% if job.scheduled %} {% endif %} {% if job.interval %} {% endif %} {% if job.duration %} {% endif %}
{% trans "Status" %} {% badge job.get_status_display bg_color=job.get_status_color %}
{% trans "Scheduled for" %} {{ job.scheduled|isodatetime }}
{% trans "Recurs every" %} {% blocktrans trimmed count minutes=job.interval %} {{ minutes }} minute {% plural %} {{ minutes }} minutes {% endblocktrans %}
{% trans "Started" %} {{ job.started|placeholder }}
{% trans "Completed" %} {{ job.completed|placeholder }}
{% trans "Duration" %} {{ job.duration }}
{% trans "User" %} {{ job.user|placeholder }}

{% trans "Log" %}

{% render_table table 'inc/table.html' %}
{% if output %}

{% trans "Output" %}

{{ output }}
{% endif %}