{% extends 'generic/object.html' %} {% load helpers %} {% load i18n %} {% block title %}{{ object }} - {{ report.title }}{% endblock %} {% block extra_controls %}  {% trans "Audits" %} {% if can_run %}
{% csrf_token %}
{% endif %} {% endblock extra_controls %} {% block content %}
{{ report.title }}

{{ report.description }}

{% if generated_live %}

{% trans "Computed from NetBox when this page was opened." %}

{% elif job %}

{% trans "From job" %} #{{ job.pk }} {% badge job.get_status_display bg_color=job.get_status_color %} {% if job.completed %}{% trans "completed" %} {{ job.completed|isodatetime }}{% endif %}

{% endif %} {% if error %} {% endif %} {% if sections %} {% for item in sections.summary %} {% endfor %}
{{ item.label }} {% if item.value is True %}{% trans "Yes" %} {% elif item.value is False %}{% trans "No" %} {% elif item.value is None %}— {% else %}{{ item.value }}{% endif %}
{% if sections.remediation %} {% endif %} {% if sections.note %}

{{ sections.note }}

{% endif %} {% for table in sections.tables %} {% if table.rows %}
{{ table.title }} {% if table.total > table.rows|length %} ({% blocktrans with shown=table.rows|length total=table.total %}{{ shown }} of {{ total }}{% endblocktrans %}) {% else %} ({{ table.rows|length }}) {% endif %}
{% for column in table.columns %}{% endfor %} {% for row in table.rows %} {% for cell in row %} {% endfor %} {% endfor %}
{{ column }}
{% if cell.device_id %} {{ cell.label|default:cell.device_id }} {% elif cell.interface_id %} {{ cell.label|default:cell.interface_id }} {% elif cell is True %}{% trans "Yes" %} {% elif cell is False %}{% trans "No" %} {% elif cell is None %}— {% else %}{{ cell }}{% endif %}
{% endif %} {% endfor %} {% elif not error %}

{% if job %} {% trans "The latest run has not produced a report yet. Reload once the job completes." %} {% else %} {% trans "This audit has not been run. Run it to ask Forward and store the result on a job." %} {% endif %}

{% endif %}
{% endblock content %}