{% 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 %} {% if tests %} {# Summary of test methods #}
{% trans "Test Summary" %}
{% for test, data in tests.items %} {% endfor %}
{{ test }} {{ data.success }} {{ data.info }} {{ data.warning }} {{ data.failure }}
{% endif %} {% if table %}
{% trans "Log" %}
{% include 'htmx/table.html' %}
{% endif %} {# Script output. Legacy reports will not have this. #} {% if 'output' in job.data %}
{% trans "Output" %}
{% if job.data.output %}
{{ job.data.output }}
{% else %}
{% trans "None" %}
{% endif %}
{% endif %} {% elif job.started %} {% include 'extras/inc/result_pending.html' %} {% endif %}