{% 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_account_activity_img, set_forwarding_address_img, set_alias_address_img, set_assigned_groups_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')), (ctx.homepath + '/mls/' + cur_domain, _('Mailing Lists')), (ctx.homepath + '/aliases/' + cur_domain, _('Aliases')), ('active', ctx.homepath + '/admins/' + cur_domain, _('Admins')), ] %} {% else %} {% set crumbs = [ (ctx.homepath + '/domains', _('All domains')), (ctx.homepath + '/profile/domain/general/' + cur_domain, cur_domain), ('active', ctx.homepath + '/users/' + cur_domain, _('Users')), (ctx.homepath + '/mls/' + cur_domain, _('Mailing Lists')), (ctx.homepath + '/aliases/' + cur_domain, _('Aliases')), ] %} {% if session.get('is_global_admin') %} {% set crumbs = crumbs + [(ctx.homepath + '/admins/' + cur_domain, _('Admins'))] %} {% endif %} {% endif %} {% if backend != "pgsql" %} {% set crumbs = crumbs + [(ctx.homepath + '/users/' + cur_domain + '/last_logins', _('Last Logins'))] %} {% 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. #}