{% if active_tab == 'users' or active_tab == 'groups' %}
{% if active_tab == 'users' %}
{% if users %}
| {% trans 'Username' %} |
{% trans 'Email' %} |
{% trans 'Actions' %} |
{% for user in users %}
| {{ user.username }} |
{{ user.email }} |
|
{% endfor %}
{% else %}
{% trans 'No Gatekeeper Users found.' %}
{% endif %}
{% elif active_tab == 'groups' %}
{% if groups %}
| {% trans 'Group Name' %} |
{% trans 'Members' %} |
{% trans 'Actions' %} |
{% for group in groups %}
| {{ group.name }} |
{{ group.users.count }} |
|
{% endfor %}
{% else %}
{% trans 'No Gatekeeper Groups found.' %}
{% endif %}
{% endif %}
{% elif active_tab == 'auth_methods' %}
{% if auth_methods %}
| {% trans 'Name' %} |
{% trans 'Type' %} |
{% trans 'Actions' %} |
{% for method in auth_methods %}
| {{ method.name }} |
{{ method.get_auth_type_display }} |
|
{% endfor %}
{% else %}
{% trans 'No Authentication Methods found.' %}
{% endif %}
{% elif active_tab == 'allowed_identities' %}
{% if auth_emails or auth_domains %}
| {% trans 'Type' %} |
{% trans 'Identity' %} |
{% trans 'Auth Method' %} |
{% trans 'Actions' %} |
{% for email in auth_emails %}
| {% trans 'Email' %} |
{{ email.email }} |
{{ email.auth_method.name }} |
|
{% endfor %}
{% for domain in auth_domains %}
| {% trans 'Domain' %} |
{{ domain.domain }} |
{{ domain.auth_method.name }} |
|
{% endfor %}
{% else %}
{% trans 'No Allowed Emails or Domains found.' %}
{% endif %}
{% elif active_tab == 'ip_addresses' %}
{% if auth_ips %}
| {% trans 'IP Address' %} |
{% trans 'Prefix Length' %} |
{% trans 'Action' %} |
{% trans 'Auth Method' %} |
{% trans 'Manage' %} |
{% for ip in auth_ips %}
| {{ ip.address }} |
{% if ip.prefix_length %}/{{ ip.prefix_length }}{% endif %} |
{% if ip.action == 'allow' %}
{% trans 'Allow' %}
{% else %}
{% trans 'Deny' %}
{% endif %}
|
{{ ip.auth_method.name }} |
|
{% endfor %}
{% else %}
{% trans 'No IP Addresses found.' %}
{% endif %}
{% endif %}