📄 tabs.html.tmpl
字号:
#------------------------------------------------------------------------# Compiled template generated by the Template Toolkit version 2.13#------------------------------------------------------------------------Template::Document->new({ METADATA => { 'modtime' => '1089180154', 'name' => 'search/tabs.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 0 "template\en\default\search\tabs.html.tmpl" $stash->set('tabs', [ { 'name' => 'specific', 'description' => ("Find a Specific " . $stash->get(['terms', 0, 'Bug', 0]) . " ") }, { 'name' => 'advanced', 'description' => 'Advanced Search' } ]); $output .= "\n"; #line 34 "template\en\default\search\tabs.html.tmpl" $stash->set('current_tab', $stash->get('query_format') || $stash->get('format') || 'advanced'); $output .= "\n\n<center>\n <table cellspacing=\"0\" cellpadding=\"10\" border=\"0\" width=\"100%\">\n <tr>\n <td class=\"spacer\"> </td>\n "; #line 56 "template\en\default\search\tabs.html.tmpl" # FOREACH do { my ($value, $error, $oldloop); my $list = $stash->get('tabs'); 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->{'tab'} = $value; #line 56 "template\en\default\search\tabs.html.tmpl" if ($stash->get(['tab', 0, 'name', 0]) eq $stash->get('current_tab')) { $output .= "\n <td align=\"center\" bgcolor=\"lightblue\" class=\"selected_tab\">"; #line 45 "template\en\default\search\tabs.html.tmpl" $output .= $stash->get(['tab', 0, 'description', 0]); $output .= "\n </td>"; } else { $output .= "\n <td align=\"center\" bgcolor=\"#BBBBEE\" class=\"unselected_tab\">\n <a href=\"query.cgi?format="; #line 50 "template\en\default\search\tabs.html.tmpl" $output .= $stash->get(['tab', 0, 'name', 0]); $output .= "\" >"; #line 52 "template\en\default\search\tabs.html.tmpl" $output .= $stash->get(['tab', 0, 'description', 0]); $output .= "\n </a>\n </td>"; } ; ($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 <td class=\"spacer\"> </td>\n </tr>\n </table>\n</center>\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 + -