{% if active_tab == 'applications' or active_tab == 'hosts' %}
{% if active_tab == 'applications' %}
{% endif %}
{% if active_tab == 'applications' %}
{% if applications %}
| {% trans 'Name' %} |
{% trans 'Upstream' %} |
{% trans 'Hosts' %} |
{% trans 'Routes' %} |
{% trans 'Default Policy' %} |
{% for app in applications %}
|
{{ app }}
|
{{ app.upstream }} |
{{ app.hosts.count }} |
{{ app.routes.count }} |
{% if app.default_policy_config %}
{{ app.default_policy_config.default_policy }}
{% else %}
{% trans 'Default (Deny)' %}
{% endif %}
|
{% endfor %}
{% else %}
{% trans 'No Applications found.' %}
{% endif %}
{% elif active_tab == 'hosts' %}
{% if hosts %}
| {% trans 'Hostname' %} |
{% trans 'Application' %} |
{% for host in hosts %}
| {{ host.hostname }} |
{{ host.application }}
|
{% endfor %}
{% else %}
{% trans 'No Hosts found.' %}
{% endif %}
{% endif %}
{% elif active_tab == 'policies' %}
{% if access_policies %}
| {% trans 'Name' %} |
{% trans 'Policy Type' %} |
{% trans 'Groups' %} |
{% trans 'Auth Methods' %} |
{% trans 'Actions' %} |
{% for policy in access_policies %}
| {{ policy.display_name|default:policy.name }} |
{{ policy.get_policy_type_display }} |
{{ policy.groups.count }} |
{{ policy.methods.count }} |
|
{% endfor %}
{% else %}
{% trans 'No Access Policies found.' %}
{% endif %}
{% endif %}