{% extends "layout.html" %} {% from "macros/form_inputs.html" import input_csrf_token with context %} {% from "macros/general.html" import display_subnav, set_account_status_img, set_user_admin_type_img, highlight_username_in_mail, display_progress_bar, display_filter_by_first_char, show_pages, display_remove_mailbox_days with context %} {% from "macros/msg_handlers.html" import user_msg_handler with context %} {% block title %}{{ _('Mail Users') }}{% endblock %} {% block navlinks_domains %}class="active"{% endblock %} {% block breadcrumb %} {% if all_are_admins %} {% set crumbs = [ (ctx.homepath + '/domains', _('All domains')), (ctx.homepath + '/profile/domain/general/' + cur_domain, cur_domain), (ctx.homepath + '/users/' + cur_domain, _('Users')), ] %} {% else %} {% set crumbs = [ (ctx.homepath + '/domains', _('All domains')), (ctx.homepath + '/profile/domain/general/' + cur_domain, cur_domain), ('active', ctx.homepath + '/users/' + cur_domain, _('Users')), ] %} {% endif %} {{ display_subnav(crumbs) }} {% endblock %} {% block main %} {# Show system message #} {{ user_msg_handler(msg) }} {% if users is defined %} {% if users or (not users and first_char) %} {% if all_are_admins %} {{ display_filter_by_first_char(baseurl=ctx.homepath + '/admins/' + cur_domain, first_char=first_char, account_type='admin', disabled_only=disabled_only) }} {% else %} {{ display_filter_by_first_char(baseurl=ctx.homepath + '/users/' + cur_domain, available_chars=all_first_chars, first_char=first_char, account_type='user', disabled_only=disabled_only) }} {% endif %} {% endif %} {# List all users. #}