{% extends "base.html" %} {% block title %}Users{% endblock %} {% block content %}

Users

New User
{% if domain_admins %} {% for u in domain_admins %} {% endfor %} {% else %} {% endif %}
Username Role Domain Mailbox Active Last Login Actions
{{ u.username }} {% if u.is_mailbox_user and u.aliases %} {% set n = u.aliases|length %} (+{{ n }} alias{% if n != 1 %}es{% endif %}) {% endif %} {% if u.role == 'domain_admin' %} Domain admin {% elif u.role == 'user' %} Mailbox user {% else %} {{ u.role }} {% endif %} {{ u.domain.domain if u.domain else '-' }} {{ u.mailbox or '-' }} {% if u.is_active %} Yes {% else %} No {% endif %} {{ u.last_login.strftime('%Y-%m-%d %H:%M') if u.last_login else 'Never' }}
{% if u.id != current_user.id %}
{% endif %}
No user accounts yet.
{% endblock %}