📄 list.csv.tmpl
字号:
#------------------------------------------------------------------------# Compiled template generated by the Template Toolkit version 2.20#------------------------------------------------------------------------Template::Document->new({ METADATA => { 'modtime' => '1185465832', 'name' => 'list/list.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 23 "template\en\default\list\list.csv.tmpl" $output .= $context->process('global/field-descs.none.tmpl'); #line 24 "template\en\default\list\list.csv.tmpl" # USE $stash->set('date', $context->plugin('date')); $output .= "\n"; #line 26 "template\en\default\list\list.csv.tmpl" $stash->set('colsepchar', $stash->get(['user', 0, 'settings', 0, 'csv_colsepchar', 0, 'value', 0])); $output .= "\n\nbug_id"; #line 31 "template\en\default\list\list.csv.tmpl" # FOREACH do { my ($_tt_value, $_tt_error, $_tt_oldloop); my $_tt_list = $stash->get('displaycolumns'); 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->{'column'} = $_tt_value; #line 30 "template\en\default\list\list.csv.tmpl" $output .= $stash->get('colsepchar'); #line 30 "template\en\default\list\list.csv.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('csv') || $context->throw($context->error); $output .= $stash->get('column'); &$_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; }; $output .= "\n"; #line 48 "template\en\default\list\list.csv.tmpl" # FOREACH do { my ($_tt_value, $_tt_error, $_tt_oldloop); my $_tt_list = $stash->get('bugs'); 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->{'bug'} = $_tt_value; #line 34 "template\en\default\list\list.csv.tmpl" $output .= $stash->get(['bug', 0, 'bug_id', 0]); #line 46 "template\en\default\list\list.csv.tmpl" # FOREACH do { my ($_tt_value, $_tt_error, $_tt_oldloop); my $_tt_list = $stash->get('displaycolumns'); 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->{'column'} = $_tt_value; #line 36 "template\en\default\list\list.csv.tmpl" $output .= $stash->get('colsepchar'); #line 44 "template\en\default\list\list.csv.tmpl" if ($stash->get('column') eq 'opendate' || $stash->get('column') eq 'changeddate') { #line 38 "template\en\default\list\list.csv.tmpl" $stash->set('rawcolumn', $stash->get(['column', 0, 'replace', [ 'date', 'time' ]])); #line 39 "template\en\default\list\list.csv.tmpl" $stash->set(['bug', 0, $stash->get('column'), 0], $stash->get(['date', 0, 'format', [ $stash->get(['bug', 0, $stash->get('rawcolumn'), 0]), '%Y-%m-%d %H:%M:%S' ]])); } elsif ($stash->get('column') eq 'bug_status') { #line 41 "template\en\default\list\list.csv.tmpl" $stash->set(['bug', 0, $stash->get('column'), 0], $stash->get(['status_descs', 0, $stash->get(['bug', 0, $stash->get('column'), 0]), 0])); } elsif ($stash->get('column') eq 'resolution') { #line 43 "template\en\default\list\list.csv.tmpl" $stash->set(['bug', 0, $stash->get('column'), 0], $stash->get(['get_resolution', [ $stash->get(['bug', 0, $stash->get('column'), 0]) ]])); } #line 45 "template\en\default\list\list.csv.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('csv') || $context->throw($context->error); $output .= $stash->get(['bug', 0, $stash->get('column'), 0]); &$_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; }; $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 => { },});
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -