chart.html.tmpl

来自「bugzilla的安装文件」· TMPL 代码 · 共 169 行

TMPL
169
字号
#------------------------------------------------------------------------# Compiled template generated by the Template Toolkit version 2.13#------------------------------------------------------------------------Template::Document->new({    METADATA => {        'modtime' => '1074451170',        'name' => 'reports/chart.html.tmpl',    },    BLOCK => sub {        my $context = shift || die "template sub called without context\n";        my $stash   = $context->stash;        my $output  = '';        my $error;                eval { BLOCK: {    $output .=  "\n";    $output .=  "\n  \n";    $output .=  "\n";    #line 26 "template\en\default\reports\chart.html.tmpl"    $stash->set('width', 600, 1);    $stash->set('height', 350, 1);        $output .=  "\n";    #line 31 "template\en\default\reports\chart.html.tmpl"    $output .=  $context->process('global/header.html.tmpl', { 'title' => 'Chart', 'h3' => $stash->get(['time2str', [ '%Y-%m-%d %H:%M:%S', $stash->get('time') ]]) });    $output .=  "\n\n<div align=\"center\">\n";    #line 44 "template\en\default\reports\chart.html.tmpl"        # CAPTURE    $stash->set('imageurl', do {        my $output = '';    $output .=  "chart.cgi?";    #line 41 "template\en\default\reports\chart.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get('imagebase');                &$filter($output);    };        $output .=  "&amp;ctype=png&amp;action=plot&amp;width=";    #line 43 "template\en\default\reports\chart.html.tmpl"    $output .=  $stash->get('width');    $output .=  "&amp;height=";    #line 43 "template\en\default\reports\chart.html.tmpl"    $output .=  $stash->get('height');        $output;    });        $output .=  "\n\n  <img alt=\"Graphical report results\" src=\"";    #line 46 "template\en\default\reports\chart.html.tmpl"    $output .=  $stash->get('imageurl');    $output .=  "\"\n    width=\"";    #line 47 "template\en\default\reports\chart.html.tmpl"    $output .=  $stash->get('width');    $output .=  "\" height=\"";    #line 47 "template\en\default\reports\chart.html.tmpl"    $output .=  $stash->get('height');    $output .=  "\">\n  <p>";    #line 54 "template\en\default\reports\chart.html.tmpl"        # CAPTURE    $stash->set('sizeurl', do {        my $output = '';    $output .=  "chart.cgi?";    #line 52 "template\en\default\reports\chart.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get('imagebase');                &$filter($output);    };        $output .=  "&amp;action=wrap";        $output;    });        $output .=  "\n    <a href=\"";    #line 55 "template\en\default\reports\chart.html.tmpl"    $output .=  $stash->get('sizeurl');    $output .=  "&amp;width=";    #line 55 "template\en\default\reports\chart.html.tmpl"    $output .=  $stash->get('width');    $output .=  "&amp;height=";    #line 57 "template\en\default\reports\chart.html.tmpl"    $output .=  $stash->get('height') + 100;    $output .=  "\">Taller</a><br>\n    <a href=\"";    #line 58 "template\en\default\reports\chart.html.tmpl"    $output .=  $stash->get('sizeurl');    $output .=  "&amp;width=";    #line 58 "template\en\default\reports\chart.html.tmpl"    $output .=  $stash->get('width') - 100;    $output .=  "&amp;height=";    #line 60 "template\en\default\reports\chart.html.tmpl"    $output .=  $stash->get('height');    $output .=  "\">Thinner</a> * \n    <a href=\"";    #line 61 "template\en\default\reports\chart.html.tmpl"    $output .=  $stash->get('sizeurl');    $output .=  "&amp;width=";    #line 61 "template\en\default\reports\chart.html.tmpl"    $output .=  $stash->get('width') + 100;    $output .=  "&amp;height=";    #line 63 "template\en\default\reports\chart.html.tmpl"    $output .=  $stash->get('height');    $output .=  "\">Fatter</a>&nbsp;&nbsp;&nbsp;&nbsp;<br>\n    <a href=\"";    #line 64 "template\en\default\reports\chart.html.tmpl"    $output .=  $stash->get('sizeurl');    $output .=  "&amp;width=";    #line 64 "template\en\default\reports\chart.html.tmpl"    $output .=  $stash->get('width');    $output .=  "&amp;height=";    #line 66 "template\en\default\reports\chart.html.tmpl"    $output .=  $stash->get('height') - 100;    $output .=  "\">Shorter</a><br>\n  </p>\n  \n  <p>\n    <a href=\"chart.cgi?";    #line 72 "template\en\default\reports\chart.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get('imagebase');                &$filter($output);    };        $output .=  "&amp;ctype=csv&amp;action=plot\">CSV</a> |\n    <a href=\"chart.cgi?";    #line 73 "template\en\default\reports\chart.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get('imagebase');                &$filter($output);    };        $output .=  "&amp;action=assemble\">Edit \n    this chart</a>\n  </p>\n \n</div>\n";    #line 80 "template\en\default\reports\chart.html.tmpl"    $output .=  $context->process('global/footer.html.tmpl');    $output .=  "\n";        } };        if ($@) {            $error = $context->catch($@, \$output);            die $error unless $error->type eq 'return';        }            return $output;    },    DEFBLOCKS => {    },});

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?