?? show.xml.tmpl
字號:
my $output = ''; my $_tt_filter = $context->filter('xml') || $context->throw($context->error); $output .= $stash->get(['c', 0, 'body', 0]); &$_tt_filter($output); }; $output .= "</thetext>\n </long_desc>";; ($_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 111 "template\en\default\bug\show.xml.tmpl" if ($stash->get(['displayfields', 0, 'attachment', 0])) { #line 110 "template\en\default\bug\show.xml.tmpl" # FOREACH do { my ($_tt_value, $_tt_error, $_tt_oldloop); my $_tt_list = $stash->get(['bug', 0, 'attachments', 0]); 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->{'a'} = $_tt_value; #line 84 "template\en\default\bug\show.xml.tmpl" if ($stash->get(['a', 0, 'isprivate', 0]) && ! $stash->get(['user', 0, 'in_group', [ $stash->get(['Param', [ 'insidergroup' ]]) ]])) { ($_tt_value, $_tt_error) = $_tt_list->get_next(); next LOOP; } $output .= "\n <attachment\n isobsolete=\""; #line 86 "template\en\default\bug\show.xml.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('xml') || $context->throw($context->error); $output .= $stash->get(['a', 0, 'isobsolete', 0]); &$_tt_filter($output); }; $output .= "\"\n ispatch=\""; #line 87 "template\en\default\bug\show.xml.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('xml') || $context->throw($context->error); $output .= $stash->get(['a', 0, 'ispatch', 0]); &$_tt_filter($output); }; $output .= "\"\n isprivate=\""; #line 88 "template\en\default\bug\show.xml.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('xml') || $context->throw($context->error); $output .= $stash->get(['a', 0, 'isprivate', 0]); &$_tt_filter($output); }; $output .= "\"\n >\n <attachid>"; #line 90 "template\en\default\bug\show.xml.tmpl" $output .= $stash->get(['a', 0, 'id', 0]); $output .= "</attachid>\n <date>"; #line 91 "template\en\default\bug\show.xml.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('xml') || $context->throw($context->error); # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('time') || $context->throw($context->error); $output .= $stash->get(['a', 0, 'attached', 0]); &$_tt_filter($output); }; &$_tt_filter($output); }; $output .= "</date>\n <desc>"; #line 92 "template\en\default\bug\show.xml.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('xml') || $context->throw($context->error); $output .= $stash->get(['a', 0, 'description', 0]); &$_tt_filter($output); }; $output .= "</desc>\n <filename>"; #line 93 "template\en\default\bug\show.xml.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('xml') || $context->throw($context->error); $output .= $stash->get(['a', 0, 'filename', 0]); &$_tt_filter($output); }; $output .= "</filename>\n <type>"; #line 94 "template\en\default\bug\show.xml.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('xml') || $context->throw($context->error); $output .= $stash->get(['a', 0, 'contenttype', 0]); &$_tt_filter($output); }; $output .= "</type>\n <size>"; #line 95 "template\en\default\bug\show.xml.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('xml') || $context->throw($context->error); $output .= $stash->get(['a', 0, 'datasize', 0]); &$_tt_filter($output); }; $output .= "</size>"; #line 98 "template\en\default\bug\show.xml.tmpl" if ($stash->get(['displayfields', 0, 'attachmentdata', 0])) { $output .= "\n <data encoding=\"base64\">"; #line 97 "template\en\default\bug\show.xml.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('base64') || $context->throw($context->error); $output .= $stash->get(['a', 0, 'data', 0]); &$_tt_filter($output); }; $output .= "</data>"; } $output .= " \n"; #line 108 "template\en\default\bug\show.xml.tmpl" # FOREACH do { my ($_tt_value, $_tt_error, $_tt_oldloop); my $_tt_list = $stash->get(['a', 0, 'flags', 0]); 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->{'flag'} = $_tt_value; $output .= "\n <flag name=\""; #line 101 "template\en\default\bug\show.xml.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('xml') || $context->throw($context->error); $output .= $stash->get(['flag', 0, 'type', 0, 'name', 0]); &$_tt_filter($output); }; $output .= "\"\n status=\""; #line 102 "template\en\default\bug\show.xml.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('xml') || $context->throw($context->error); $output .= $stash->get(['flag', 0, 'status', 0]); &$_tt_filter($output); }; $output .= "\"\n setter=\""; #line 103 "template\en\default\bug\show.xml.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('xml') || $context->throw($context->error); $output .= $stash->get(['flag', 0, 'setter', 0, 'email', 0]); &$_tt_filter($output); }; $output .= "\""; #line 106 "template\en\default\bug\show.xml.tmpl" if ($stash->get(['flag', 0, 'status', 0]) eq '?' && $stash->get(['flag', 0, 'requestee', 0])) { $output .= "\n requestee=\""; #line 105 "template\en\default\bug\show.xml.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('xml') || $context->throw($context->error); $output .= $stash->get(['flag', 0, 'requestee', 0, 'email', 0]); &$_tt_filter($output); }; $output .= "\""; } $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 </attachment>";; ($_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 113 "template\en\default\bug\show.xml.tmpl" $output .= $stash->get(['Hook', 0, 'process', [ 'bug_end' ]]); $output .= "\n\n </bug>"; } ; ($_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\n</bugzilla>\n"; $output .= "\n"; } }; if ($@) { $_tt_error = $context->catch($@, \$output); die $_tt_error unless $_tt_error->type eq 'return'; } return $output; }, DEFBLOCKS => { 'bug_field' => sub { my $context = shift || die "template sub called without context\n"; my $stash = $context->stash; my $output = ''; my $_tt_error; eval { BLOCK: { #line 135 "template\en\default\bug\show.xml.tmpl" # FOREACH do { my ($_tt_value, $_tt_error, $_tt_oldloop); my $_tt_list = $stash->get(['bug', 0, $stash->get('field'), 0]); 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->{'val'} = $_tt_value; $output .= "\n "; #line 126 "template\en\default\bug\show.xml.tmpl" $stash->set('name', ''); #line 133 "template\en\default\bug\show.xml.tmpl" if ($stash->get('field') eq 'reporter' || $stash->get('field') eq 'assigned_to' || $stash->get('field') eq 'qa_contact') { #line 129 "template\en\default\bug\show.xml.tmpl" $stash->set('name', $stash->get(['val', 0, 'name', 0])); #line 130 "template\en\default\bug\show.xml.tmpl" $stash->set('val', $stash->get(['val', 0, 'email', 0])); } elsif ($stash->get('field') eq 'creation_ts' || $stash->get('field') eq 'delta_ts') { #line 132 "template\en\default\bug\show.xml.tmpl" # CAPTURE $stash->set('val', do { my $output = ''; # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('time') || $context->throw($context->error); $output .= $stash->get('val'); &$_tt_filter($output); }; $output; }); } $output .= "\n <"; #line 134 "template\en\default\bug\show.xml.tmpl" $output .= $stash->get('field'); #line 134 "template\en\default\bug\show.xml.tmpl" if ($stash->get('name') ne '') { $output .= " name=\""; #line 134 "template\en\default\bug\show.xml.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('xml') || $context->throw($context->error); $output .= $stash->get('name'); &$_tt_filter($output); }; $output .= "\""; } $output .= ">"; #line 134 "template\en\default\bug\show.xml.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('xml') || $context->throw($context->error); $output .= $stash->get('val'); &$_tt_filter($output); }; $output .= "</"; #line 134 "template\en\default\bug\show.xml.tmpl" $output .= $stash->get('field'); $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; }; } }; if ($@) { $_tt_error = $context->catch($@, \$output); die $_tt_error unless $_tt_error->type eq 'return'; } return $output; }, },});
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -