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