[% USE Api2; USE Master; USE CPBranding; USE UI_Includes; USE Apache; SET CPANEL.CPVAR.indexpage = "1"; SET homeDir = CPANEL.homedir, isReseller = ExpVar.expand('$isresellerlogin'), domain = CPANEL.CPDATA.DNS, user_theme = CPANEL.CPDATA.RS, user = CPANEL.user; SET embeded_styles_list = ["home/dashboard.css"]; SET page_styles_list = []; IF !CPANEL.ua_is_mobile; embeded_styles_list.push("css/angular-chosen-spinner.css"); page_styles_list.push("libraries/chosen/1.5.1/chosen.min.css"); END; SET applist = ["tls_status"]; SET apps = {}; FOREACH applist_item IN applist; apps.$applist_item = CPBranding.get_application_from_available_applications(varcache.available_applications, applist_item); END; SET upgradeUrl = CPANEL.CPVAR.dprefix _ CPBranding.get_implementer_from_available_applications( varcache.available_applications, 'upgrade', ).url; SET current_style = CPANEL.current_style || execute("Styles", "current").data.name; SET is_glass_style = current_style == 'glass'; SET display_pl_deprecation_notice = varcache.display_pl_deprecation && CPANEL.feature("theme-switch"); # Set NGINX variables. SET nginx_caching_enabled = 0; # hard coded default SET nginx_is_installed = !file_test("e", "/etc/nginx/ea-nginx/enable.standalone") && file_test("e", "/etc/nginx/ea-nginx/cache.json"); IF nginx_is_installed; SET nginx_caching_userconf_path = "/var/cpanel/userdata/" _ user _ "/nginx-cache.json"; SET nginx_caching_global = JSON.loadfile("/etc/nginx/ea-nginx/cache.json"); IF nginx_caching_global.exists("enabled"); nginx_caching_enabled = nginx_caching_global.item("enabled"); END; IF file_test("e", nginx_caching_userconf_path); SET nginx_caching_user = JSON.loadfile(nginx_caching_userconf_path); IF nginx_caching_user.exists("enabled"); nginx_caching_enabled = nginx_caching_user.item("enabled"); END; END; END; %] [% js_code_first = PROCESS js_block_first %] [% js_page_first = PROCESS register_nvdata %] [% WRAPPER '_assets/master.html.tt' page_title = locale.maketext("Main") page_js_top = js_code_first page_js = js_page_first include_legacy_stylesheets = 0 include_legacy_scripts = 0 include_cjt = 0 embed_stylesheets = embeded_styles_list page_stylesheets = page_styles_list hide_page_heading = 1 app_key = "home" use_master_bootstrap = 0 focus_feature_search = 1 -%]
[% IF display_pl_deprecation_notice %]
[% locale.maketext("Image welcoming to Jupiter theme") %]
[% locale.maketext("It’s time to switch to the Jupiter theme") %]

[%- locale.maketext("When your server updates to cPanel [output,amp] WHM version 108, your account will automatically upgrade to the [output,url,_1,Jupiter,class,externalLink,target,Jupiter documentation] theme. For more information, read our [output,url,_2,Updated Paper Lantern Removal Schedule,class,externalLink,target,Updated Paper Lantern Removal Schedule] blog post.","https://go.cpanel.net/jupiter-interface","https://go.cpanel.net/PL-removal") -%]

[% END %]
[% PROCESS home/views/applicationList.html.tt %]
[% IF UI_Includes.can_load_template( 'above_general_information.html.tt' ) -%]
[% UI_Includes.load_template( 'above_general_information.html.tt' ); %]
[% END %]
[% locale.maketext("General Information") %]
[% IF apps.tls_status %] [% IF is_glass_style %] [% ELSE %] [% END %] [% ELSE %] [% END %] [% IF nginx_is_installed %] [% END %]
[% IF isReseller %] [% IF !CPANEL.ua_is_mobile %] [% ELSE %] [% END %] [% ELSE %] [% user %] [% END %]
[%# Loading StatsBar has significant overhead so ExpVar.expand is used here %] [% IF ExpVar.expand('$hasdedicatedip') %] [% ELSE %] [% END %] [% ExpVar.expand('$ip') %]
[% homeDir %]
[% execute( 'LastLogin', 'get_last_or_current_logged_in_ip' ).data %]
[% IF CPANEL.feature("theme-switch") %] [% IF !CPANEL.ua_is_mobile %] [% ELSE %] [% END %] [% ELSE %] [% user_theme %] [% END %]
[% IF CPANEL.feature("toggle_nginx_caching") %] [% ELSE %] [% IF nginx_caching_enabled; locale.maketext("Active"); ELSE; locale.maketext('Inactive'); END; %] [% END %]
[% locale.maketext("Server Information") %]
[% IF UI_Includes.can_load_template( 'above_stats_bar.html.tt' ) -%]
[% UI_Includes.load_template( 'above_stats_bar.html.tt' ); %]
[% END %]
[% locale.maketext("Statistics") %]
[% IF !is_glass_style %] [% END %]
[% IF is_glass_style %] {{::app.description}} [% ELSE %] {{::app.description}} {{::app.description}} [% END %]
{{::app.formattedPercent}}%
{{::app.formattedUsage}} / {{::app.formattedMaximum}} ({{::app.formattedPercent}}%)
[% IF is_glass_style %]
{{app.warningTooltip}}
[% ELSE %]
[% END %]
[% IF is_glass_style %] [% locale.maketext('Data Unavailable') %] [% ELSE %]

[% locale.maketext('Data Unavailable') %]

[% END %]
[% IF upgradeUrl -%] [% ELSE -%] [% END -%]
[% IF UI_Includes.can_load_template( 'below_stats_bar.html.tt' ) -%]
[% UI_Includes.load_template( 'below_stats_bar.html.tt' ); %]
[% END %]
[% SET application_dir = ExpVar.expand('$basedir') _ "/home/"; SET file = ExpVar.expand('$basefilename'); SET requirejs_url_base = '/frontend/' _ user_theme; %] [% PROCESS '_assets/cjt2_header_include.tt' %] [% END #wrapper -%] [% BLOCK js_block_first %] [% PROCESS home/views/applicationListHeader.html.tt %] [% END %] [% BLOCK register_nvdata %] [% END %]