📄 bugmail.html.tmpl
字号:
#------------------------------------------------------------------------# Compiled template generated by the Template Toolkit version 2.13#------------------------------------------------------------------------Template::Document->new({ METADATA => { 'modtime' => '1074451166', 'name' => 'bug/process/bugmail.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 40 "template\en\default\bug\process\bugmail.html.tmpl" $output .= $context->process('global/variables.none.tmpl'); $output .= "\n"; #line 43 "template\en\default\bug\process\bugmail.html.tmpl" $stash->set('mail', $stash->get(['SendBugMail', [ $stash->get('mailing_bugid'), $stash->get('mailrecipients') ]])); $output .= "\n"; #line 46 "template\en\default\bug\process\bugmail.html.tmpl" $output .= $context->process('emails', { 'description' => 'Email sent to', 'names' => $stash->get(['mail', 0, 'sent', 0]) }); $output .= "\n<br>"; #line 52 "template\en\default\bug\process\bugmail.html.tmpl" $output .= $context->process('emails', { 'description' => 'Excluding', 'names' => $stash->get(['mail', 0, 'excluded', 0]) }); $output .= "\n<br>\n<center>\n If you wish to tweak the kinds of mail "; #line 58 "template\en\default\bug\process\bugmail.html.tmpl" $output .= $stash->get(['terms', 0, 'Bugzilla', 0]); $output .= " sends you, you can\n <a href=\"userprefs.cgi?tab=email\">change your preferences</a>.\n</center>\n\n\n"; $output .= "\n"; $output .= "\n"; $output .= "\n"; $output .= "\n"; } }; if ($@) { $error = $context->catch($@, \$output); die $error unless $error->type eq 'return'; } return $output; }, DEFBLOCKS => { 'emails' => sub { my $context = shift || die "template sub called without context\n"; my $stash = $context->stash; my $output = ''; my $error; eval { BLOCK: { $output .= "\n <b>"; #line 69 "template\en\default\bug\process\bugmail.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('description'); &$filter($output); }; $output .= ":</b>"; #line 75 "template\en\default\bug\process\bugmail.html.tmpl" if ($stash->get(['names', 0, 'size', 0]) > 0) { $output .= "\n "; #line 72 "template\en\default\bug\process\bugmail.html.tmpl" # FOREACH do { my ($value, $error, $oldloop); my $list = $stash->get('names'); unless (UNIVERSAL::isa($list, 'Template::Iterator')) { $list = Template::Config->iterator($list) || die $Template::Config::ERROR, "\n"; } ($value, $error) = $list->get_first(); eval { $oldloop = $stash->get('loop') }; $stash->set('loop', $list); eval { LOOP: while (! $error) { $stash->{'name'} = $value; #line 72 "template\en\default\bug\process\bugmail.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('name'); &$filter($output); }; #line 72 "template\en\default\bug\process\bugmail.html.tmpl" if (!($stash->get(['loop', 0, 'last', 0]))) { $output .= ', '; } ; ($value, $error) = $list->get_next(); } }; $stash->set('loop', $oldloop); die $@ if $@; $error = 0 if $error && $error eq Template::Constants::STATUS_DONE; die $error if $error; }; } else { $output .= "\n no one"; } } }; if ($@) { $error = $context->catch($@, \$output); die $error unless $error->type eq 'return'; } return $output; }, },});
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -