{% extends "layout.html" %} {% from "macros/general.html" import display_csrf_token, display_subnav, set_account_status_img, highlight_username_in_mail, show_pages, with context %} {% from "macros/msgHandlers.html" import userMsgHandler with context %} {% block title %}{{ _('Mail Users') }}{% endblock %} {% block navlinks_active_domains %}class="active"{% endblock %} {% block breadcrumb %} {% set crumbs = [ (ctx.homepath + '/domains', _('All domains')), (ctx.homepath + '/profile/domain/general/' + cur_domain, cur_domain), ('active', ctx.homepath + '/users/' + cur_domain, _('Users')), ] %} {{ display_subnav(crumbs) }} {% endblock %} {% block main %} {# Show system message #} {{ userMsgHandler(msg) }} {% if users is defined %} {# List all users. #}

{{ _('Users under domain: %s') |format(cur_domain) }} {% if total is defined and users|length > 0 %} ({{ (cur_page-1) * pageSizeLimit + 1 }}-{{ (cur_page-1) * pageSizeLimit + users|length}}/{{ total }}) {% endif %}

{{ display_csrf_token() }} {# #} {% if users|length > 0 %} {% for r in users %} {% set username = r.username |e %} {# #} {# mail quota #} {% if r.quota == 0 %} {% else %} {% endif %} {% endfor %} {% else %} {% endif %}
{{ _('Display Name') }} {{ _('Mail Address') }} {{ _('User ID') }}{{ _('Job Title') }}{{ _('Quota') }}
{{ set_account_status_img(r.active) }} {% if r.name %} {{ r.name |cut_string |e }} {% else %} {{ r.username.split('@', 1)[0] }} {% endif %} {{ highlight_username_in_mail(username) }} {% if r.employeeid %}{{ r.employeeid |e }}{% endif %}{{ jobTitle }}{{ _('Unlimited') }} {{ r.quota |filesizeformat(baseMB=True) }}
{{ _('No mail user available.') }} {{ _('Add one') }}?
{# #user_list #}
{# .box-wrapper #}
{# -- End id=user_list -- #}
{% endif %} {% endblock main %} {% block js %} {{ load_jquery(['tablesorter'], nonSortedCols=[0]) }} {% endblock js %}