📄 knob.html.tmpl
字号:
#------------------------------------------------------------------------# Compiled template generated by the Template Toolkit version 2.13#------------------------------------------------------------------------Template::Document->new({ METADATA => { 'modtime' => '1104003588', 'name' => 'search/knob.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\n"; #line 34 "template\en\default\search\knob.html.tmpl" $output .= $context->process('global/variables.none.tmpl'); $output .= "\n\n"; #line 0 "template\en\default\search\knob.html.tmpl" $stash->set('ordersdesc', { 'Reuse same sort as last time' => 'Reuse same sort as last time', 'Bug Number' => ($stash->get(['terms', 0, 'Bug', 0]) . " Number"), 'Importance' => 'Importance', 'Assignee' => 'Assignee', 'Last Changed' => 'Last Changed' }); $output .= "\n\n<input type=\"hidden\" name=\"cmdtype\" value=\"doit\">\n\n<p>\n Sort results by:\n <select name=\"order\">"; #line 56 "template\en\default\search\knob.html.tmpl" # FOREACH do { my ($value, $error, $oldloop); my $list = $stash->get('orders'); 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->{'order'} = $value; $output .= "\n <option value=\""; #line 50 "template\en\default\search\knob.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('order'); &$filter($output); }; $output .= "\""; #line 52 "template\en\default\search\knob.html.tmpl" if ($stash->get(['default', 0, 'order', 0, 0, 0]) eq $stash->get('order')) { $output .= ' selected'; } $output .= ">"; #line 54 "template\en\default\search\knob.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['ordersdesc', 0, $stash->get('order'), 0]); &$filter($output); }; $output .= "</option>";; ($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 </select>\n</p>\n\n<p> \n <input type=\"submit\" value=\""; #line 61 "template\en\default\search\knob.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('button_name'); &$filter($output); }; $output .= "\">"; #line 67 "template\en\default\search\knob.html.tmpl" if ($stash->get('known_name')) { $output .= "\n <input type=\"hidden\" name=\"query_based_on\" \n value=\""; #line 65 "template\en\default\search\knob.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('known_name'); &$filter($output); }; $output .= "\">"; } $output .= "\n</p>\n\n<p>\n \n <input type=\"checkbox\" id=\"remasdefault\"\n name=\"remtype\" value=\"asdefault\">\n <label for=\"remasdefault\">\n and remember these as my default search options\n </label>\n</p>\n"; #line 86 "template\en\default\search\knob.html.tmpl" if ($stash->get('userdefaultquery')) { $output .= "\n <p>\n <a href=\"query.cgi?nukedefaultquery=1\">\n Set my default search back to the system default</a>.\n </p>"; } $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 + -