{% extends 'base/layout.html' %} {% load buttons %} {% load helpers %} {% load perms %} {% block title %}Reports{% endblock %} {% block tabs %} {% endblock tabs %} {% block controls %}
{% block extra_controls %}{% endblock %} {% add_button model %}
{% endblock controls %} {% block content-wrapper %}
{% for module in report_modules %}
{% if perms.extras.delete_reportmodule %} {% endif %} {{ module }}
{% include 'inc/sync_warning.html' with object=module %} {% with jobs=module.get_latest_jobs %} {% for report_name, report in module.reports.items %} {% with last_job=jobs|get_key:report.name %} {% if last_job %} {% else %} {% endif %} {% for method, stats in last_job.data.items %} {% endfor %} {% endwith %} {% endfor %} {% endwith %}
Name Description Last Run Status
{{ report.name }} {{ report.description|markdown|placeholder }} {{ last_job.created|annotated_date }} {% badge last_job.get_status_display last_job.get_status_color %} Never {{ ''|placeholder }} {% if perms.extras.run_report %}
{% csrf_token %}
{% endif %}
{{ method }} {{ stats.success }} {{ stats.info }} {{ stats.warning }} {{ stats.failure }}
{% empty %} {% endfor %}
{% endblock content-wrapper %}