📄 list-for-bug.html.tmpl
字号:
#------------------------------------------------------------------------# Compiled template generated by the Template Toolkit version 2.13#------------------------------------------------------------------------Template::Document->new({ METADATA => { 'modtime' => '1074451166', 'name' => 'bug/votes/list-for-bug.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 31 "template\en\default\bug\votes\list-for-bug.html.tmpl" $output .= $context->process('global/variables.none.tmpl'); $output .= "\n"; #line 0 "template\en\default\bug\votes\list-for-bug.html.tmpl" $output .= $context->process('global/header.html.tmpl', { 'title' => 'Show Votes', 'h2' => ($stash->get(['terms', 0, 'Bug', 0]) . " <a href=\"show_bug.cgi?id=" . $stash->get('bug_id') . "\">" . $stash->get('bug_id') . "</a>") }); $output .= "\n\n<table cellspacing=\"4\">\n <tr>\n <th>Who</th>\n <th>Number of votes</th>\n </tr>\n"; #line 60 "template\en\default\bug\votes\list-for-bug.html.tmpl" # FOREACH do { my ($value, $error, $oldloop); my $list = $stash->get('users'); 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->{'voter'} = $value; $output .= "\n <tr>\n <td>\n <a href=\"votes.cgi?action=show_user&user="; #line 49 "template\en\default\bug\votes\list-for-bug.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('url_quote') || $context->throw($context->error); $output .= $stash->get(['voter', 0, 'name', 0]); &$filter($output); }; $output .= "\">"; #line 51 "template\en\default\bug\votes\list-for-bug.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['voter', 0, 'name', 0]); &$filter($output); }; $output .= "\n </a>\n </td>\n <td align=\"right\">"; #line 56 "template\en\default\bug\votes\list-for-bug.html.tmpl" $output .= $stash->get(['voter', 0, 'count', 0]); $output .= "\n </td>\n </tr>";; ($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; }; $output .= "\n</table>\n\n<p>Total votes: "; #line 63 "template\en\default\bug\votes\list-for-bug.html.tmpl" $output .= $stash->get('total'); $output .= "</p>\n"; #line 66 "template\en\default\bug\votes\list-for-bug.html.tmpl" $output .= $context->process('global/footer.html.tmpl'); $output .= "\n"; } }; if ($@) { $error = $context->catch($@, \$output); die $error unless $error->type eq 'return'; } return $output; }, DEFBLOCKS => { },});
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -