{% extends 'base.html' %} {% load helpers %} {% block javascript %} {% endblock %} {% block content %}

{% block title %}Jobs{% endblock %}

{% if jobs %} {% for module, module_jobs in jobs %} {% for job in module_jobs %} {% for method, stats in job.result.data.items %} {% if method != "total" and method != "output" %} {% endif %} {% endfor %} {% endfor %} {% endfor %}
Module / Job Description Last Run Last Status Last Results

{{ module|bettertitle }}

{{ job }} {% if job.read_only %} {% endif %} {{ job.description | placeholder }} {% if job.result %} {{ job.result.created }} by {{ job.result.user }} {% else %} Never {% endif %} {% if job.result %} {% endif %} {% include 'extras/inc/job_label.html' with result=job.result %} {% if job.result %} {% comment %} Every job.result.data has keys 'output', 'total', those don't count. Only show the "more" button if there's more than one result grouping; i.e. 'output' + 'total' + 'grouping1' + 'grouping2' (+ ...) {% endcomment %} {% if job.result.data and job.result.data|length > 3 %} {% endif %} {% else %} — {% endif %}
{{ method }}
{% else %}

No jobs found.

Jobs should be saved to {{ settings.JOBS_ROOT }}. (This path can be changed by setting JOBS_ROOT in Nautobot's configuration.)

{% endif %}
{% endblock %}