?? report-table.csv.tmpl
字號(hào):
#------------------------------------------------------------------------# Compiled template generated by the Template Toolkit version 2.20#------------------------------------------------------------------------Template::Document->new({ METADATA => { 'modtime' => '1152813644', 'name' => 'reports/report-table.csv.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 .= "\n"; $output .= "\n"; #line 24 "template\en\default\reports\report-table.csv.tmpl" $output .= $context->process('global/variables.none.tmpl'); $output .= "\n"; #line 26 "template\en\default\reports\report-table.csv.tmpl" $stash->set('colsepchar', $stash->get(['user', 0, 'settings', 0, 'csv_colsepchar', 0, 'value', 0])); $output .= "\n"; #line 28 "template\en\default\reports\report-table.csv.tmpl" # CAPTURE $stash->set('num_bugs', do { my $output = ''; $output .= "Number of "; #line 28 "template\en\default\reports\report-table.csv.tmpl" $output .= $stash->get(['terms', 0, 'bugs', 0]); $output; }); #line 29 "template\en\default\reports\report-table.csv.tmpl" $stash->set('tbl_field_disp', $stash->get(['field_descs', 0, $stash->get('tbl_field'), 0]) || $stash->get('tbl_field')); #line 30 "template\en\default\reports\report-table.csv.tmpl" $stash->set('col_field_disp', $stash->get(['field_descs', 0, $stash->get('col_field'), 0]) || $stash->get('col_field')); #line 31 "template\en\default\reports\report-table.csv.tmpl" $stash->set('row_field_disp', $stash->get(['field_descs', 0, $stash->get('row_field'), 0]) || $stash->get('row_field')); $output .= "\n"; #line 35 "template\en\default\reports\report-table.csv.tmpl" if ($stash->get('tbl_field')) { #line 34 "template\en\default\reports\report-table.csv.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('csv') || $context->throw($context->error); $output .= $stash->get('tbl_field_disp'); &$_tt_filter($output); }; $output .= ": "; #line 34 "template\en\default\reports\report-table.csv.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('csv') || $context->throw($context->error); $output .= $stash->get('tbl'); &$_tt_filter($output); }; } #line 38 "template\en\default\reports\report-table.csv.tmpl" if ($stash->get('row_field')) { #line 37 "template\en\default\reports\report-table.csv.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('csv') || $context->throw($context->error); $output .= $stash->get('row_field_disp'); &$_tt_filter($output); }; } #line 39 "template\en\default\reports\report-table.csv.tmpl" if ($stash->get('col_field') && $stash->get('row_field')) { $output .= ' / '; } #line 40 "template\en\default\reports\report-table.csv.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('csv') || $context->throw($context->error); $output .= $stash->get('col_field_disp'); &$_tt_filter($output); }; #line 54 "template\en\default\reports\report-table.csv.tmpl" if ($stash->get('col_field')) { #line 51 "template\en\default\reports\report-table.csv.tmpl" # FOREACH do { my ($_tt_value, $_tt_error, $_tt_oldloop); my $_tt_list = $stash->get('col_names'); unless (UNIVERSAL::isa($_tt_list, 'Template::Iterator')) { $_tt_list = Template::Config->iterator($_tt_list) || die $Template::Config::ERROR, "\n"; } ($_tt_value, $_tt_error) = $_tt_list->get_first(); eval { $_tt_oldloop = $stash->get('loop') }; $stash->set('loop', $_tt_list); eval { LOOP: while (! $_tt_error) { $stash->{'col'} = $_tt_value; #line 43 "template\en\default\reports\report-table.csv.tmpl" $output .= $stash->get('colsepchar'); #line 50 "template\en\default\reports\report-table.csv.tmpl" if ($stash->get('col_field') eq 'bug_status') { #line 45 "template\en\default\reports\report-table.csv.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('csv') || $context->throw($context->error); $output .= $stash->get(['status_descs', 0, $stash->get('col'), 0]); &$_tt_filter($output); }; } elsif ($stash->get('col_field') eq 'resolution') { #line 47 "template\en\default\reports\report-table.csv.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('csv') || $context->throw($context->error); $output .= $stash->get(['get_resolution', [ $stash->get('col') ]]); &$_tt_filter($output); }; } else { #line 49 "template\en\default\reports\report-table.csv.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('csv') || $context->throw($context->error); $output .= $stash->get('col'); &$_tt_filter($output); }; } ; ($_tt_value, $_tt_error) = $_tt_list->get_next(); } }; $stash->set('loop', $_tt_oldloop); die $@ if $@; $_tt_error = 0 if $_tt_error && $_tt_error eq Template::Constants::STATUS_DONE; die $_tt_error if $_tt_error; }; } else { #line 53 "template\en\default\reports\report-table.csv.tmpl" $output .= $stash->get('colsepchar'); #line 53 "template\en\default\reports\report-table.csv.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('csv') || $context->throw($context->error); $output .= $stash->get('num_bugs'); &$_tt_filter($output); }; } $output .= "\n"; #line 73 "template\en\default\reports\report-table.csv.tmpl" # FOREACH do { my ($_tt_value, $_tt_error, $_tt_oldloop); my $_tt_list = $stash->get('row_names'); unless (UNIVERSAL::isa($_tt_list, 'Template::Iterator')) { $_tt_list = Template::Config->iterator($_tt_list) || die $Template::Config::ERROR, "\n"; } ($_tt_value, $_tt_error) = $_tt_list->get_first(); eval { $_tt_oldloop = $stash->get('loop') }; $stash->set('loop', $_tt_list); eval { LOOP: while (! $_tt_error) { $stash->{'row'} = $_tt_value; #line 63 "template\en\default\reports\report-table.csv.tmpl" if ($stash->get('row_field') eq 'bug_status') { #line 58 "template\en\default\reports\report-table.csv.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('csv') || $context->throw($context->error); $output .= $stash->get(['status_descs', 0, $stash->get('row'), 0]); &$_tt_filter($output); }; } elsif ($stash->get('row_field') eq 'resolution') { #line 60 "template\en\default\reports\report-table.csv.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('csv') || $context->throw($context->error); $output .= $stash->get(['get_resolution', [ $stash->get('row') ]]); &$_tt_filter($output); }; } else { #line 62 "template\en\default\reports\report-table.csv.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('csv') || $context->throw($context->error); $output .= $stash->get('row'); &$_tt_filter($output); }; } #line 71 "template\en\default\reports\report-table.csv.tmpl" # FOREACH do { my ($_tt_value, $_tt_error, $_tt_oldloop); my $_tt_list = $stash->get('col_names'); unless (UNIVERSAL::isa($_tt_list, 'Template::Iterator')) { $_tt_list = Template::Config->iterator($_tt_list) || die $Template::Config::ERROR, "\n"; } ($_tt_value, $_tt_error) = $_tt_list->get_first(); eval { $_tt_oldloop = $stash->get('loop') }; $stash->set('loop', $_tt_list); eval { LOOP: while (! $_tt_error) { $stash->{'col'} = $_tt_value; #line 65 "template\en\default\reports\report-table.csv.tmpl" $output .= $stash->get('colsepchar'); #line 70 "template\en\default\reports\report-table.csv.tmpl" if ($stash->get(['data', 0, $stash->get('tbl'), 0]) && $stash->get(['data', 0, $stash->get('tbl'), 0, $stash->get('col'), 0]) && $stash->get(['data', 0, $stash->get('tbl'), 0, $stash->get('col'), 0, $stash->get('row'), 0])) { #line 67 "template\en\default\reports\report-table.csv.tmpl" $output .= $stash->get(['data', 0, $stash->get('tbl'), 0, $stash->get('col'), 0, $stash->get('row'), 0]); } else { $output .= "0"; } ; ($_tt_value, $_tt_error) = $_tt_list->get_next(); } }; $stash->set('loop', $_tt_oldloop); die $@ if $@; $_tt_error = 0 if $_tt_error && $_tt_error eq Template::Constants::STATUS_DONE; die $_tt_error if $_tt_error; }; $output .= "\n";; ($_tt_value, $_tt_error) = $_tt_list->get_next(); } }; $stash->set('loop', $_tt_oldloop); die $@ if $@; $_tt_error = 0 if $_tt_error && $_tt_error eq Template::Constants::STATUS_DONE; die $_tt_error if $_tt_error; }; $output .= "\n"; } }; if ($@) { $_tt_error = $context->catch($@, \$output); die $_tt_error unless $_tt_error->type eq 'return'; } return $output; }, DEFBLOCKS => { },});
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -