📄 mail.txt.tmpl
字号:
#------------------------------------------------------------------------# Compiled template generated by the Template Toolkit version 2.20#------------------------------------------------------------------------Template::Document->new({ METADATA => { 'modtime' => '1152813644', 'name' => 'whine/mail.txt.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\n"; $output .= "\n"; #line 32 "template\en\default\whine\mail.txt.tmpl" $output .= $context->process('global/variables.none.tmpl'); #line 33 "template\en\default\whine\mail.txt.tmpl" $output .= $context->process('global/field-descs.none.tmpl'); $output .= "\n\n"; #line 37 "template\en\default\whine\mail.txt.tmpl" $stash->set('assignee_login_string', 'map_assigned_to.login_name'); $output .= "\n"; #line 39 "template\en\default\whine\mail.txt.tmpl" $output .= $stash->get('body'); $output .= "\n"; #line 46 "template\en\default\whine\mail.txt.tmpl" if ($stash->get(['author', 0, 'login', 0]) eq $stash->get(['recipient', 0, 'login', 0])) { $output .= "\n To edit your whine schedule, visit the following URL:\n "; #line 43 "template\en\default\whine\mail.txt.tmpl" $output .= $stash->get(['Param', [ 'urlbase' ]]); $output .= "editwhines.cgi"; } else { $output .= "\n This search was scheduled by "; #line 45 "template\en\default\whine\mail.txt.tmpl" $output .= $stash->get(['author', 0, 'login', 0]); $output .= "."; } $output .= "\n\n"; #line 68 "template\en\default\whine\mail.txt.tmpl" # FOREACH do { my ($_tt_value, $_tt_error, $_tt_oldloop); my $_tt_list = $stash->get('queries'); 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->{'query'} = $_tt_value; $output .= "\n\n"; #line 51 "template\en\default\whine\mail.txt.tmpl" $output .= $stash->get(['query', 0, 'title', 0]); $output .= "\n"; #line 52 "template\en\default\whine\mail.txt.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('repeat', [ $stash->get(['query', 0, 'title', 0, 'length', 0]) ]) || $context->throw($context->error); $output .= '-'; &$_tt_filter($output); }; $output .= "\n"; #line 66 "template\en\default\whine\mail.txt.tmpl" # FOREACH do { my ($_tt_value, $_tt_error, $_tt_oldloop); my $_tt_list = $stash->get(['query', 0, 'bugs', 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->{'bug'} = $_tt_value; #line 55 "template\en\default\whine\mail.txt.tmpl" $output .= $stash->get(['terms', 0, 'Bug', 0]); $output .= " "; #line 55 "template\en\default\whine\mail.txt.tmpl" $output .= $stash->get(['bug', 0, 'bug_id', 0]); $output .= ":\n "; #line 56 "template\en\default\whine\mail.txt.tmpl" $output .= $stash->get(['Param', [ 'urlbase' ]]); $output .= "show_bug.cgi?id="; #line 56 "template\en\default\whine\mail.txt.tmpl" $output .= $stash->get(['bug', 0, 'bug_id', 0]); $output .= "\n Priority: "; #line 57 "template\en\default\whine\mail.txt.tmpl" $output .= $stash->get(['bug', 0, 'priority', 0]); $output .= " Severity: "; #line 58 "template\en\default\whine\mail.txt.tmpl" $output .= $stash->get(['bug', 0, 'bug_severity', 0]); $output .= " Platform: "; #line 59 "template\en\default\whine\mail.txt.tmpl" $output .= $stash->get(['bug', 0, 'rep_platform', 0]); $output .= "\n Assignee: "; #line 60 "template\en\default\whine\mail.txt.tmpl" $output .= $stash->get(['bug', 0, $stash->get('assignee_login_string'), 0]); $output .= "\n Status: "; #line 61 "template\en\default\whine\mail.txt.tmpl" $output .= $stash->get(['status_descs', 0, $stash->get(['bug', 0, 'bug_status', 0]), 0]); #line 63 "template\en\default\whine\mail.txt.tmpl" if ($stash->get(['bug', 0, 'resolution', 0])) { $output .= " Resolution: "; #line 62 "template\en\default\whine\mail.txt.tmpl" $output .= $stash->get(['get_resolution', [ $stash->get(['bug', 0, 'resolution', 0]) ]]); } $output .= "\n Summary: "; #line 64 "template\en\default\whine\mail.txt.tmpl" $output .= $stash->get(['bug', 0, 'short_desc', 0]); $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";; ($_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\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 + -