{% extends "layout.html" %} {% from "macros/general.html" import load_jquery, display_csrf_token, set_account_status_img, display_number_of_account_limited, display_add_domain, show_pages, with context %} {% from "macros/msgHandlers.html" import domainMsgHandler, with context %} {% block title %}{{ _('Domains and Accounts') }}{% endblock %} {% block navlinks_active_domains %}class="active"{% endblock %} {% block main %} {# Show system message #} {{ domainMsgHandler(msg) }} {# List all domains under control. #}

{{ _('All domains under your control.') }} {% if total is defined and allDomains|length > 0 %} ({{ (cur_page-1) * pageSizeLimit + 1 }}-{{ (cur_page-1) * pageSizeLimit + allDomains|length}}/{{ total }}) {% endif %}

{{ display_csrf_token() }} {% if session.get('domainGlobalAdmin') is sameas true %} {% endif %} {% if allDomains |length > 0 %} {% for r in allDomains %} {% set domain = r.domain |e %} {% if session.get('domainGlobalAdmin') is sameas true %} {% endif %} {% if r.description is sameas none %} {% else %} {% endif %} {#-- Domain Quota --#} {#-- Users --#} {% endfor %} {% else %} {% if session.get('domainGlobalAdmin') is sameas true %} {% else %} {% endif %} {% endif %}
{{ _('Domain') }} {{ _('Name') }} {{ _('Quota') }} {{ _('Users') }}
{{ set_account_status_img(r.active) }} {{ domain }}  {{ r.description |cut_string |e }} {{ r.quota_count |filesizeformat(baseMB=True) }}{{ display_number_of_account_limited(r.maxquota |filesizeformat(baseMB=True), hide_unlimited=false) }} {% if r.mailboxes > 0 %} {% if r.mailbox_count is not sameas none %}{{ r.mailbox_count }}{% else %}0{% endif %} {{ display_number_of_account_limited(r.mailboxes, hide_unlimited=false) }}) {% elif r.mailboxes == -1 %} {{ _('DISABLED') }} {% else %} {% if r.mailbox_count is not sameas none %}{{ r.mailbox_count }}{% else %}0{% endif %} {% endif %}
{{ _('No mail domain available.') }} {{ _('Add one') }}? {{ _('No mail domain available.') }}
{% endblock main %} {% block js %} {% if session.get('domainGlobalAdmin') is sameas true %} {% set nonSortedCols = [0] %} {% else %} {% set nonSortedCols = [] %} {% endif %} {{ load_jquery(['tablesorter'], nonSortedCols=nonSortedCols) }} {% endblock js %}