File: //var/cpanel/template_compiles/usr/local/cpanel/shared/templates/_bandwidth_graph_include.tmpl
#------------------------------------------------------------------------
# Compiled template generated by the Template Toolkit version 2.25
#------------------------------------------------------------------------
Template::Document->new({
METADATA => {
'modtime' => '1445330722',
'name' => '/usr/local/cpanel/shared/templates/_bandwidth_graph_include.tmpl',
},
BLOCK => sub {
my $context = shift || die "template sub called without context\n";
my $stash = $context->stash;
my $output = '';
my $_tt_error;
eval { BLOCK: {
$output .= "<script>\n ";
#line 2 "/usr/local/cpanel/shared/templates/_bandwidth_graph_include.tmpl"
$output .= $context->insert('sharedjs/jstz.min.js');
$output .= "\n ";
#line 3 "/usr/local/cpanel/shared/templates/_bandwidth_graph_include.tmpl"
$output .= $context->insert('sharedjs/cptimezone_optimized.js');
$output .= "\n CPTimezone.set_timezone_and_reload_if_unset();\n</script>\n\n<style type=\"text/css\">\n";
#line 8 "/usr/local/cpanel/shared/templates/_bandwidth_graph_include.tmpl"
$output .= $context->insert('sharedcss/bw_time_graph_optimized.css');
#line 9 "/usr/local/cpanel/shared/templates/_bandwidth_graph_include.tmpl"
$output .= $context->insert('sharedcss/cptimezone_optimized.css');
$output .= "</style>\n\n<script>\n ";
#line 13 "/usr/local/cpanel/shared/templates/_bandwidth_graph_include.tmpl"
$output .= $context->insert('sharedjs/d3.min.js');
$output .= "\n ";
#line 14 "/usr/local/cpanel/shared/templates/_bandwidth_graph_include.tmpl"
$output .= $context->insert('sharedjs/chart_utilities_optimized.js');
$output .= "\n\n ";
#line 16 "/usr/local/cpanel/shared/templates/_bandwidth_graph_include.tmpl"
$stash->set('lex', $stash->get(['CPANEL', 0, 'get_js_lex_app_rel_path', [ 'sharedjs/bandwidth_graph.js' ]]));
$output .= "\n ";
#line 17 "/usr/local/cpanel/shared/templates/_bandwidth_graph_include.tmpl"
if ($stash->get('lex')) {
$output .= $context->insert($stash->get('lex'));
}
$output .= "\n ";
#line 18 "/usr/local/cpanel/shared/templates/_bandwidth_graph_include.tmpl"
$output .= $context->insert('sharedjs/bandwidth_graph_optimized.js');
$output .= "\n\n function wait_for_CLDR_to_load(todo) {\n var loadInterval = setInterval(\n function() {\n if ( !LOCALE.get_cldr('datetime') ) return;\n\n clearInterval(loadInterval);\n todo();\n },\n 5\n );\n }\n</script>\n\n";
#line 38 "/usr/local/cpanel/shared/templates/_bandwidth_graph_include.tmpl"
# MACRO
$stash->set('your_timezone_is', sub {
my $_tt_params = $_[0] if ref($_[0]) eq 'HASH';
my $output = '';
my $stash = $context->localise($_tt_params);
eval {
$output .= "<span class=\"your-timezone-is\">\n ";
#line 35 "/usr/local/cpanel/shared/templates/_bandwidth_graph_include.tmpl"
$output .= $stash->get(['locale', 0, 'maketext', [ 'All times are in the “[_1]” time zone.', $stash->get(['CPANEL', 0, 'cookies', 0, 'timezone', 0, 'html', 0]) ]]);
$output .= "\n <a class=\"if-timezone-cookie-needs-update\" href=\"javascript:CPTimezone.reset_timezone_and_reload()\">";
#line 36 "/usr/local/cpanel/shared/templates/_bandwidth_graph_include.tmpl"
$output .= $stash->get(['locale', 0, 'maketext', [ 'Set the time zone to “[_1]”, and reload.', '<span class="detected-timezone"></span>' ]]);
$output .= "</a>\n</span>\n";
};
$stash = $context->delocalise();
die $@ if $@;
return $output;
});
} };
if ($@) {
$_tt_error = $context->catch($@, \$output);
die $_tt_error unless $_tt_error->type eq 'return';
}
return $output;
},
DEFBLOCKS => {
},
});