{% 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, highlight_username_in_mail, display_filter_by_first_char, display_list_access_policy_name, show_pages with context %} {% from "macros/msg_handlers.html" import maillist_msg_handler with context %} {% block title %}{{ _('Mailing Lists') }}{% endblock %} {% block navlinks_domains %}class="active"{% endblock %} {% block breadcrumb %} {% set crumbs = [ (ctx.homepath + '/domains', _('All domains')), (ctx.homepath + '/profile/domain/general/' + cur_domain, cur_domain), (ctx.homepath + '/users/' + cur_domain, _('Users')), ('active', 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 %} {% 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 #} {{ maillist_msg_handler(msg) }} {% if maillists is defined %} {% if maillists or (not maillists and first_char) %} {{ display_filter_by_first_char(baseurl=ctx.homepath + '/mls/' + cur_domain, available_chars=all_first_chars, first_char=first_char, disabled_only=disabled_only) }} {% endif %}