📄 knob.html.tmpl
字号:
#------------------------------------------------------------------------# Compiled template generated by the Template Toolkit version 2.13#------------------------------------------------------------------------Template::Document->new({ METADATA => { 'modtime' => '1102988154', 'name' => 'bug/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"; #line 24 "template\en\default\bug\knob.html.tmpl" $output .= $context->process('global/variables.none.tmpl'); $output .= "\n\n"; $output .= "\n\n <br>\n <input type=\"radio\" id=\"knob-leave\" name=\"knob\" value=\"none\" checked=\"checked\">\n <label for=\"knob-leave\">\n Leave as <b>"; #line 31 "template\en\default\bug\knob.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['bug', 0, 'bug_status', 0]); &$filter($output); }; $output .= " "; #line 33 "template\en\default\bug\knob.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['bug', 0, 'resolution', 0]); &$filter($output); }; $output .= "</b>\n </label>\n <br>\n"; #line 38 "template\en\default\bug\knob.html.tmpl" $stash->set('knum', 1); $output .= "\n"; #line 48 "template\en\default\bug\knob.html.tmpl" if ($stash->get(['bug', 0, 'isunconfirmed', 0]) && $stash->get(['bug', 0, 'user', 0, 'canconfirm', 0])) { $output .= "\n <input type=\"radio\" id=\"knob-confirm\" name=\"knob\" value=\"confirm\">\n <label for=\"knob-confirm\">\n Confirm "; #line 44 "template\en\default\bug\knob.html.tmpl" $output .= $stash->get(['terms', 0, 'bug', 0]); $output .= " (change status to <b>NEW</b>)\n </label>\n <br>"; #line 48 "template\en\default\bug\knob.html.tmpl" $stash->set('knum', $stash->get('knum') + 1); } $output .= "\n"; #line 163 "template\en\default\bug\knob.html.tmpl" if ($stash->get(['bug', 0, 'user', 0, 'canedit', 0])) { #line 163 "template\en\default\bug\knob.html.tmpl" if ($stash->get(['bug', 0, 'isopened', 0])) { #line 61 "template\en\default\bug\knob.html.tmpl" if ($stash->get(['bug', 0, 'bug_status', 0]) ne 'ASSIGNED' && $stash->get(['bug', 0, 'user', 0, 'canconfirm', 0])) { $output .= "\n <input type=\"radio\" id=\"knob-accept\" name=\"knob\" value=\"accept\">\n <label for=\"knob-accept\">\n Accept "; #line 54 "template\en\default\bug\knob.html.tmpl" $output .= $stash->get(['terms', 0, 'bug', 0]); $output .= " ("; #line 56 "template\en\default\bug\knob.html.tmpl" if ($stash->get(['bug', 0, 'isunconfirmed', 0])) { $output .= "confirm "; #line 56 "template\en\default\bug\knob.html.tmpl" $output .= $stash->get(['terms', 0, 'bug', 0]); $output .= ", "; } $output .= "change\n status to <b>ASSIGNED</b>)\n </label>\n <br>"; #line 61 "template\en\default\bug\knob.html.tmpl" $stash->set('knum', $stash->get('knum') + 1); } $output .= "\n"; #line 72 "template\en\default\bug\knob.html.tmpl" if ($stash->get(['bug', 0, 'resolution', 0])) { $output .= "\n <input type=\"radio\" id=\"knob-clear\" name=\"knob\" value=\"clearresolution\">\n <label for=\"knob-clear\">\n Clear the resolution (remove the current resolution of\n <b>"; #line 68 "template\en\default\bug\knob.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['bug', 0, 'resolution', 0]); &$filter($output); }; $output .= "</b>)\n </label>\n <br>"; #line 72 "template\en\default\bug\knob.html.tmpl" $stash->set('knum', $stash->get('knum') + 1); } $output .= "\n\n <input type=\"radio\" id=\"knob-resolve\" name=\"knob\" value=\"resolve\">\n <label for=\"knob-resolve\">\n Resolve "; #line 76 "template\en\default\bug\knob.html.tmpl" $output .= $stash->get(['terms', 0, 'bug', 0]); $output .= ", changing \n <a href=\"page.cgi?id=fields.html#resolution\">resolution</a> to\n </label> \n <select name=\"resolution\"\n onchange=\"document.changeform.knob["; #line 80 "template\en\default\bug\knob.html.tmpl" $output .= $stash->get('knum'); $output .= "].checked=true\">"; #line 85 "template\en\default\bug\knob.html.tmpl" # FOREACH do { my ($value, $error, $oldloop); my $list = $stash->get(['bug', 0, 'choices', 0, 'resolution', 0]); 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->{'r'} = $value; $output .= "\n <option value=\""; #line 83 "template\en\default\bug\knob.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('r'); &$filter($output); }; $output .= "\">"; #line 83 "template\en\default\bug\knob.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('r'); &$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 <br>"; #line 89 "template\en\default\bug\knob.html.tmpl" $stash->set('knum', $stash->get('knum') + 1); $output .= "\n\n <input type=\"radio\" id=\"knob-duplicate\" name=\"knob\" value=\"duplicate\">\n <label for=\"knob-duplicate\">\n Resolve "; #line 93 "template\en\default\bug\knob.html.tmpl" $output .= $stash->get(['terms', 0, 'bug', 0]); $output .= ", mark it as duplicate of "; #line 93 "template\en\default\bug\knob.html.tmpl" $output .= $stash->get(['terms', 0, 'bug', 0]); $output .= " #\n </label>\n <input name=\"dup_id\" size=\"6\"\n onchange=\"if (this.value != '')\n {document.changeform.knob["; #line 97 "template\en\default\bug\knob.html.tmpl" $output .= $stash->get('knum'); $output .= "].checked=true}\">\n <br>"; #line 100 "template\en\default\bug\knob.html.tmpl" $stash->set('knum', $stash->get('knum') + 1); $output .= "\n\n <input type=\"radio\" id=\"knob-reassign\" name=\"knob\" value=\"reassign\">\n <label for=\"knob-reassign\">\n <a href=\"page.cgi?id=fields.html#assigned_to\">Reassign</a> "; #line 106 "template\en\default\bug\knob.html.tmpl" $output .= $stash->get(['terms', 0, 'bug', 0]); $output .= " to\n </label>\n <input name=\"assigned_to\" size=\"32\"\n onchange=\"if ((this.value != '"; #line 109 "template\en\default\bug\knob.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); # FILTER $output .= do { my $output = ''; my $filter = $context->filter('js') || $context->throw($context->error); $output .= $stash->get(['bug', 0, 'assigned_to', 0, 'login', 0]); &$filter($output); }; &$filter($output); }; $output .= "') &&\n (this.value != '')) {\n document.changeform.knob["; #line 111 "template\en\default\bug\knob.html.tmpl" $output .= $stash->get('knum'); $output .= "].checked=true;\n }\"\n value=\""; #line 113 "template\en\default\bug\knob.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['bug', 0, 'assigned_to', 0, 'login', 0]); &$filter($output); }; $output .= "\">\n <br>"; #line 123 "template\en\default\bug\knob.html.tmpl" if ($stash->get(['bug', 0, 'isunconfirmed', 0]) && $stash->get(['bug', 0, 'user', 0, 'canconfirm', 0])) { $output .= "\n <input type=\"checkbox\" id=\"andconfirm\" name=\"andconfirm\">\n <label for=\"andconfirm\">\n and confirm "; #line 119 "template\en\default\bug\knob.html.tmpl" $output .= $stash->get(['terms', 0, 'bug', 0]); $output .= " (change status to <b>NEW</b>)\n </label>\n <br>"; } #line 123 "template\en\default\bug\knob.html.tmpl" $stash->set('knum', $stash->get('knum') + 1); $output .= "\n\n <input type=\"radio\" id=\"knob-reassign-cmp\" name=\"knob\" value=\"reassignbycomponent\">\n <label for=\"knob-reassign-cmp\">\n Reassign "; #line 127 "template\en\default\bug\knob.html.tmpl" $output .= $stash->get(['terms', 0, 'bug', 0]); $output .= " to owner"; #line 129 "template\en\default\bug\knob.html.tmpl" if ($stash->get(['Param', [ 'useqacontact' ]])) { $output .= ' and QA contact'; } $output .= "\n of selected component\n </label>\n <br>"; #line 141 "template\en\default\bug\knob.html.tmpl" if ($stash->get(['bug', 0, 'isunconfirmed', 0]) && $stash->get(['bug', 0, 'user', 0, 'canconfirm', 0])) { $output .= "\n <input type=\"checkbox\" id=\"compconfirm\" name=\"compconfirm\">\n <label for=\"compconfirm\">\n and confirm "; #line 137 "template\en\default\bug\knob.html.tmpl" $output .= $stash->get(['terms', 0, 'bug', 0]); $output .= " (change status to <b>NEW</b>)\n </label>\n <br>"; } #line 141 "template\en\default\bug\knob.html.tmpl" $stash->set('knum', $stash->get('knum') + 1); } else { #line 149 "template\en\default\bug\knob.html.tmpl" if ($stash->get(['bug', 0, 'resolution', 0]) ne 'MOVED' || ($stash->get(['bug', 0, 'resolution', 0]) eq 'MOVED' && $stash->get(['bug', 0, 'user', 0, 'canmove', 0]))) { $output .= "\n <input type=\"radio\" id=\"knob-reopen\" name=\"knob\" value=\"reopen\">\n <label for=\"knob-reopen\">\n Reopen "; #line 145 "template\en\default\bug\knob.html.tmpl" $output .= $stash->get(['terms', 0, 'bug', 0]); $output .= "\n </label>\n <br>"; #line 149 "template\en\default\bug\knob.html.tmpl" $stash->set('knum', $stash->get('knum') + 1); } #line 156 "template\en\default\bug\knob.html.tmpl" if ($stash->get(['bug', 0, 'bug_status', 0]) eq 'RESOLVED') { $output .= "\n <input type=\"radio\" id=\"knob-verify\" name=\"knob\" value=\"verify\">\n <label for=\"knob-verify\">\n Mark "; #line 152 "template\en\default\bug\knob.html.tmpl" $output .= $stash->get(['terms', 0, 'bug', 0]); $output .= " as <b>VERIFIED</b>\n </label>\n <br>"; #line 156 "template\en\default\bug\knob.html.tmpl" $stash->set('knum', $stash->get('knum') + 1); } #line 163 "template\en\default\bug\knob.html.tmpl" if ($stash->get(['bug', 0, 'bug_status', 0]) ne 'CLOSED') { $output .= "\n <input type=\"radio\" id=\"knob-close\" name=\"knob\" value=\"close\">\n <label for=\"knob-close\">\n Mark "; #line 159 "template\en\default\bug\knob.html.tmpl" $output .= $stash->get(['terms', 0, 'bug', 0]); $output .= " as <b>CLOSED</b>\n </label>\n <br>"; #line 163 "template\en\default\bug\knob.html.tmpl" $stash->set('knum', $stash->get('knum') + 1); } } } $output .= "\n\n <input type=\"submit\" value=\"Commit\">\n <input type=\"hidden\" name=\"form_name\" value=\"process_bug\">\n <p>\n <font size=\"+1\">\n <b>\n <a href=\"show_activity.cgi?id="; #line 170 "template\en\default\bug\knob.html.tmpl" $output .= $stash->get(['bug', 0, 'bug_id', 0]); $output .= "\">View "; #line 170 "template\en\default\bug\knob.html.tmpl" $output .= $stash->get(['terms', 0, 'Bug', 0]); $output .= " Activity</a>\n | \n <a href=\"long_list.cgi?buglist="; #line 172 "template\en\default\bug\knob.html.tmpl" $output .= $stash->get(['bug', 0, 'bug_id', 0]); $output .= "\">Format For Printing</a>\n </b>\n </font>\n"; #line 182 "template\en\default\bug\knob.html.tmpl" if ($stash->get(['bug', 0, 'user', 0, 'canmove', 0])) { $output .= "\n <font size=\"+1\"><b> | </b></font> \n <input type=\"submit\" name=\"action\"\n value=\""; #line 180 "template\en\default\bug\knob.html.tmpl" $output .= $stash->get(['Param', [ 'move-button-text' ]]); $output .= "\">"; } $output .= "\n </p>\n\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 + -