📄 mail.html.tmpl
字号:
#------------------------------------------------------------------------# Compiled template generated by the Template Toolkit version 2.20#------------------------------------------------------------------------Template::Document->new({ METADATA => { 'modtime' => '1152813644', 'name' => 'whine/mail.html.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.html.tmpl" $output .= $context->process('global/variables.none.tmpl'); #line 33 "template\en\default\whine\mail.html.tmpl" $output .= $context->process('global/field-descs.none.tmpl'); $output .= "\n\n"; #line 37 "template\en\default\whine\mail.html.tmpl" $stash->set('assignee_login_string', 'map_assigned_to.login_name'); $output .= "\n\n<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n<html>\n <head>\n <title>\n ["; #line 43 "template\en\default\whine\mail.html.tmpl" $output .= $stash->get(['terms', 0, 'Bugzilla', 0]); $output .= "] "; #line 43 "template\en\default\whine\mail.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('subject'); &$_tt_filter($output); }; $output .= "\n </title>\n </head>\n <body bgcolor=\"#FFFFFF\">\n\n <p align=\"left\">"; #line 49 "template\en\default\whine\mail.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('body'); &$_tt_filter($output); }; $output .= "\n </p>\n\n <p align=\"left\">"; #line 58 "template\en\default\whine\mail.html.tmpl" if ($stash->get(['author', 0, 'login', 0]) eq $stash->get(['recipient', 0, 'login', 0])) { $output .= "\n <a href=\""; #line 54 "template\en\default\whine\mail.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['Param', [ 'urlbase' ]]); &$_tt_filter($output); }; $output .= "editwhines.cgi\">Click\n here to edit your whine schedule</a>"; } else { $output .= "\n This search was scheduled by "; #line 57 "template\en\default\whine\mail.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['author', 0, 'login', 0]); &$_tt_filter($output); }; $output .= "."; } $output .= "\n </p>\n\n"; #line 92 "template\en\default\whine\mail.html.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 <h2>"; #line 64 "template\en\default\whine\mail.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['query', 0, 'title', 0]); &$_tt_filter($output); }; $output .= "</h2>\n\n <table width=\"100%\">\n <tr>\n <th align=\"left\">ID</th>\n <th align=\"left\">Sev</th>\n <th align=\"left\">Pri</th>\n <th align=\"left\">Plt</th>\n <th align=\"left\">Assignee</th>\n <th align=\"left\">Status</th>\n <th align=\"left\">Resolution</th>\n <th align=\"left\">Summary</th>\n </tr>\n"; #line 90 "template\en\default\whine\mail.html.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; $output .= "\n <tr>\n <td align=\"left\"><a href=\""; #line 80 "template\en\default\whine\mail.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['Param', [ 'urlbase' ]]); &$_tt_filter($output); }; $output .= "show_bug.cgi?id="; #line 81 "template\en\default\whine\mail.html.tmpl" $output .= $stash->get(['bug', 0, 'bug_id', 0]); $output .= "\">"; #line 81 "template\en\default\whine\mail.html.tmpl" $output .= $stash->get(['bug', 0, 'bug_id', 0]); $output .= "</a></td>\n <td align=\"left\">"; #line 82 "template\en\default\whine\mail.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['bug', 0, 'bug_severity', 0]); &$_tt_filter($output); }; $output .= "</td>\n <td align=\"left\">"; #line 83 "template\en\default\whine\mail.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['bug', 0, 'priority', 0]); &$_tt_filter($output); }; $output .= "</td>\n <td align=\"left\">"; #line 84 "template\en\default\whine\mail.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['bug', 0, 'rep_platform', 0]); &$_tt_filter($output); }; $output .= "</td>\n <td align=\"left\">"; #line 85 "template\en\default\whine\mail.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['bug', 0, $stash->get('assignee_login_string'), 0]); &$_tt_filter($output); }; $output .= "</td>\n <td align=\"left\">"; #line 86 "template\en\default\whine\mail.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['status_descs', 0, $stash->get(['bug', 0, 'bug_status', 0]), 0]); &$_tt_filter($output); }; $output .= "</td>\n <td align=\"left\">"; #line 87 "template\en\default\whine\mail.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['get_resolution', [ $stash->get(['bug', 0, 'resolution', 0]) ]]); &$_tt_filter($output); }; $output .= "</td>\n <td align=\"left\">"; #line 88 "template\en\default\whine\mail.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['bug', 0, 'short_desc', 0]); &$_tt_filter($output); }; $output .= "</td>\n </tr>";; ($_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 </table>";; ($_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 </body>\n</html>\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 + -