{% if template_type == "devicetab" %}
Feature |
Compliance |
{% for item in compliance %}
{{ item.rule__feature__name }} |
{% if item.compliance == False %}
Non-Compliant
{% elif item.compliance == True %}
Compliant
{% else %}
N/A
{% endif %}
|
{% endfor %}
{% elif template_type == 'location' %}
Feature |
Non-compliant |
Compliant |
{% for item in compliance %}
{{ item.rule__feature__name }} |
{{ item.non_compliant }} |
{{ item.compliant }} |
{% endfor %}
{% endif %}
{% endif %}
{# The panel will not show up, since it is returned early in template_content.py based on an actual GoldenConfig object existing #}
{% if template_type == "device-configs" %}