📄 list.html.tmpl
字号:
#------------------------------------------------------------------------# Compiled template generated by the Template Toolkit version 2.13#------------------------------------------------------------------------Template::Document->new({ METADATA => { 'modtime' => '1079731560', 'name' => 'admin/keywords/list.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 34 "template\en\default\admin\keywords\list.html.tmpl" $output .= $context->process('global/variables.none.tmpl'); $output .= "\n"; #line 37 "template\en\default\admin\keywords\list.html.tmpl" $output .= $context->process('global/header.html.tmpl', { 'title' => 'Select keyword' }); $output .= "\n"; #line 42 "template\en\default\admin\keywords\list.html.tmpl" $stash->set('max_table_size', 50); $output .= "\n"; $output .= "\n"; $output .= "\n"; #line 63 "template\en\default\admin\keywords\list.html.tmpl" $output .= $context->process('table_header'); $output .= "\n"; #line 92 "template\en\default\admin\keywords\list.html.tmpl" # FOREACH do { my ($value, $error, $oldloop); my $list = $stash->get('keywords'); 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->{'keyword'} = $value; #line 66 "template\en\default\admin\keywords\list.html.tmpl" if (! $stash->get(['loop', 0, 'first', 0]) && $stash->get(['loop', 0, 'count', 0]) % $stash->get('max_table_size') eq 1) { #line 66 "template\en\default\admin\keywords\list.html.tmpl" $output .= $context->process('table_header'); } $output .= "\n\n <tr>\n <th valign=\"top\">\n <a href=\"editkeywords.cgi?action=edit&id="; #line 70 "template\en\default\admin\keywords\list.html.tmpl" $output .= $stash->get(['keyword', 0, 'id', 0]); $output .= "\">"; #line 70 "template\en\default\admin\keywords\list.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['keyword', 0, 'name', 0]); &$filter($output); }; $output .= "</a>\n </th>\n <td valign=\"top\">"; #line 77 "template\en\default\admin\keywords\list.html.tmpl" if ($stash->get(['keyword', 0, 'description', 0])) { #line 74 "template\en\default\admin\keywords\list.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['keyword', 0, 'description', 0]); &$filter($output); }; } else { $output .= "\n <font color=\"red\">missing</font>"; } $output .= "\n </td>\n <td valign=\"top\" align=\"right\">"; #line 84 "template\en\default\admin\keywords\list.html.tmpl" if ($stash->get(['keyword', 0, 'bug_count', 0])) { #line 81 "template\en\default\admin\keywords\list.html.tmpl" $output .= $stash->get(['keyword', 0, 'bug_count', 0]); } else { $output .= "\n none"; } $output .= "\n </td>\n <th valign=\"top\">\n <a href=\"editkeywords.cgi?action=delete&id="; #line 87 "template\en\default\admin\keywords\list.html.tmpl" $output .= $stash->get(['keyword', 0, 'id', 0]); $output .= "\">Delete</a>\n </th>\n </tr>\n"; #line 92 "template\en\default\admin\keywords\list.html.tmpl" if (! $stash->get(['loop', 0, 'last', 0]) && $stash->get(['loop', 0, 'count', 0]) % $stash->get('max_table_size') eq 0) { #line 92 "template\en\default\admin\keywords\list.html.tmpl" $output .= $context->process('table_footer'); } ; ($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\n <tr>\n <td valign=\"top\" colspan=\"3\">Add a new keyword</td>\n <td><a href=\"editkeywords.cgi?action=add\">Add</a></td>\n </tr>\n"; #line 100 "template\en\default\admin\keywords\list.html.tmpl" $output .= $context->process('table_footer'); $output .= "\n"; #line 103 "template\en\default\admin\keywords\list.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 => { 'table_footer' => sub { my $context = shift || die "template sub called without context\n"; my $stash = $context->stash; my $output = ''; my $error; eval { BLOCK: { $output .= "\n </table>"; } }; if ($@) { $error = $context->catch($@, \$output); die $error unless $error->type eq 'return'; } return $output; }, 'table_header' => sub { my $context = shift || die "template sub called without context\n"; my $stash = $context->stash; my $output = ''; my $error; eval { BLOCK: { $output .= "\n <table border=\"1\" cellpadding=\"4\" cellspacing=\"0\">\n <tr bgcolor=\"#6666FF\">\n <th align=\"left\">Edit keyword ...</th>\n <th align=\"left\">Description</th>\n <th align=\"left\">"; #line 50 "template\en\default\admin\keywords\list.html.tmpl" $output .= $stash->get(['terms', 0, 'Bugs', 0]); $output .= "</th>\n <th align=\"left\">Action</th>\n </tr>"; } }; if ($@) { $error = $context->catch($@, \$output); die $error unless $error->type eq 'return'; } return $output; }, },});
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -