{% load humanize %} {% load helpers %} {% load log_levels %} {% load i18n %}

{% if job.started %} {% trans "Started" %}: {{ job.started|annotated_date }} {% elif job.scheduled %} {% trans "Scheduled for" %}: {{ job.scheduled|annotated_date }} ({{ job.scheduled|naturaltime }}) {% else %} {% trans "Created" %}: {{ job.created|annotated_date }} {% endif %} {% if job.completed %} {% trans "Duration" %}: {{ job.duration }} {% endif %} {% badge job.get_status_display job.get_status_color %}

{% if job.completed %}
{% trans "Script Log" %}
{% for log in job.data.log %} {% empty %} {% endfor %}
{% trans "Line" %} {% trans "Level" %} {% trans "Message" %}
{{ forloop.counter }} {% log_level log.status %} {{ log.message|markdown }}
{% trans "No log output" %}
{% if execution_time %} {% endif %}

{% trans "Output" %}

{% if job.data.output %}
{{ job.data.output }}
{% else %}

{% trans "None" %}

{% endif %} {% elif job.started %} {% include 'extras/inc/result_pending.html' %} {% endif %}