[% USE Uapi; USE JSON; SET CPANEL.CPVAR.dprefix = "../../"; SET has_feature = CPANEL.feature('greylist'); SET domains = Uapi.execute_or_die('cPGreyList', 'list_domains', { 'api.sort_column' => 'domain', 'api.paginate_start' => 1, 'api.paginate_size' => 20, 'api.normalize' => 1, }); SET enabled = execute('cPGreyList', 'has_greylisting_enabled', {}).data.enabled; %] [% WRAPPER '_assets/master.html.tt' app_key = 'greylisting' include_legacy_stylesheets = 0 include_legacy_scripts = 0 include_cjt = 0 use_master_bootstrap = 0 page_stylesheets = [ 'mail/greylisting/index.css' ] -%] [% IF has_feature -%]
[% PROCESS '_assets/cjt2_header_include.tt' %] [% ELSE -%]
[% locale.maketext('You do not have access to this feature. You must have the [asis,Greylisting] feature enabled for your account to manage [asis,Greylisting] on your domains.') %]
[% END -%] [% END #wrapper -%]