[% USE date; USE CGI; USE Api2; SET CPANEL.CPVAR.dprefix = "../../"; USE default_page = URL('index.html'); SET FORM.from = date.format(date.now, format => '%Y-%m-%d 00:00', gmt => 1); SET FORM.to = date.format(date.now, format => '%Y-%m-%d 23:59', gmt => 1); SET page_scripts = ["/3rdparty/cloudlinux/jquery/jquery-1.10.2.min.js", "/3rdparty/cloudlinux/jquery/jquery-ui.min.js", "/3rdparty/cloudlinux/jquery/jquery.dataTables.min.js"]; SET page_stylesheets = ["/3rdparty/cloudlinux/jquery/jquery-ui.css", "/3rdparty/cloudlinux/jquery/jquery.dataTables.css"]; %] [% css_code = PROCESS css_block %] [% TRY # try load template, generate automatically if not present master.html.tt %] [% WRAPPER '_assets/master.html.tt' page_title = "Snapshots" page_styles = css_code include_cjt = 0 hide_page_heading = 1 app_key = "snapshots" use_master_bootstrap = 0 %] [%- FOR source IN page_scripts %] [% END -%] [% FOR source IN page_stylesheets %] [% END %] [% INCLUDE main %] [% END #wrapper %] [% CATCH %] [% execute("Branding", "include", { file='stdheader.uapi' }).data %] [%- FOR source IN page_scripts %] [% END -%] [% FOR source IN page_stylesheets %] [% END %] [% css_code %] [% PROCESS branding_spritelist.tt %] [% INCLUDE main %] [% execute("Branding", "include", { file='stdfooter.uapi' }).data %] [% END #TRY %] [% BLOCK main %]