{% extends "layout.html" %} {% from "macros/form_inputs.html" import input_submit, input_csrf_token with context %} {% from "macros/general.html" import display_subnav, display_per_account_wblist_all, show_pages with context %} {% from "macros/msg_handlers.html" import amavisd_msg_handler with context %} {% block title %}{{ _('Whitelists & Blacklists') }}{% endblock %} {% block navlinks_system %}class="active"{% endblock %} {% block breadcrumb %} {% set crumbs = [] %} {% if session.get('is_global_admin') %} {% if session.get('amavisd_enable_policy_lookup') %} {% set crumbs = crumbs + [(ctx.homepath + '/system/spampolicy', _('Global Spam Policy')), ('active', ctx.homepath + '/system/wblist', _('Whitelists & Blacklists'))] %} {% endif %} {% if session.get('iredapd_enabled') %} {% set crumbs = crumbs + [(ctx.homepath + '/system/greylisting', _('Greylisting')), (ctx.homepath + '/system/throttle', _('Throttling')), ] %} {% endif %} {% endif %} {{ display_subnav(crumbs) }} {% endblock %} {% block main %} {#-- Show system message --#} {{ amavisd_msg_handler(msg) }}