📄 knob.html.tmpl
字号:
#line 149 "template\en\default\bug\knob.html.tmpl" if ($stash->get(['bug', 0, 'bug_status', 0]) eq 'RESOLVED') { #line 142 "template\en\default\bug\knob.html.tmpl" $output .= $context->process('initial_action'); $output .= "\n <input type=\"radio\" id=\"knob-verify\" name=\"knob\" value=\"verify\">\n <label for=\"knob-verify\">\n Mark "; #line 145 "template\en\default\bug\knob.html.tmpl" $output .= $stash->get(['terms', 0, 'bug', 0]); $output .= " as <b>"; #line 145 "template\en\default\bug\knob.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['status_descs', 0, 'VERIFIED', 0]); &$_tt_filter($output); }; $output .= "</b>\n </label>\n <br>"; #line 148 "template\en\default\bug\knob.html.tmpl" $stash->set('knum', $stash->get('knum') + 1); } #line 158 "template\en\default\bug\knob.html.tmpl" if ($stash->get(['bug', 0, 'bug_status', 0]) ne 'CLOSED') { #line 151 "template\en\default\bug\knob.html.tmpl" $output .= $context->process('initial_action'); $output .= "\n <input type=\"radio\" id=\"knob-close\" name=\"knob\" value=\"close\">\n <label for=\"knob-close\">\n Mark "; #line 154 "template\en\default\bug\knob.html.tmpl" $output .= $stash->get(['terms', 0, 'bug', 0]); $output .= " as <b>"; #line 154 "template\en\default\bug\knob.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['status_descs', 0, 'CLOSED', 0]); &$_tt_filter($output); }; $output .= "</b>\n </label>\n <br>"; #line 157 "template\en\default\bug\knob.html.tmpl" $stash->set('knum', $stash->get('knum') + 1); } } } $output .= "\n </div>\n\n <div id=\"knob-buttons\">\n <input type=\"submit\" value=\"Commit\" id=\"commit\">"; #line 169 "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\" id=\"action\"\n value=\""; #line 168 "template\en\default\bug\knob.html.tmpl" $output .= $stash->get(['Param', [ 'move-button-text' ]]); $output .= "\">"; } $output .= "\n </div>\n</div>\n\n"; $output .= "\n"; $output .= "\n"; $output .= "\n"; $output .= "\n"; } }; if ($@) { $_tt_error = $context->catch($@, \$output); die $_tt_error unless $_tt_error->type eq 'return'; } return $output; }, DEFBLOCKS => { 'duplicate' => sub { my $context = shift || die "template sub called without context\n"; my $stash = $context->stash; my $output = ''; my $_tt_error; eval { BLOCK: { $output .= "\n <input type=\"radio\" id=\"knob-duplicate\" name=\"knob\" value=\"duplicate\">\n <label for=\"knob-duplicate\">\n Mark the "; #line 202 "template\en\default\bug\knob.html.tmpl" $output .= $stash->get(['terms', 0, 'bug', 0]); $output .= " as duplicate of "; #line 202 "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 != '') {document.changeform.knob["; #line 205 "template\en\default\bug\knob.html.tmpl" $output .= $stash->get('knum'); $output .= "].checked=true}\">\n <br>"; #line 207 "template\en\default\bug\knob.html.tmpl" $stash->set('knum', $stash->get('knum') + 1); } }; if ($@) { $_tt_error = $context->catch($@, \$output); die $_tt_error unless $_tt_error->type eq 'return'; } return $output; }, 'select_resolution' => sub { my $context = shift || die "template sub called without context\n"; my $stash = $context->stash; my $output = ''; my $_tt_error; eval { BLOCK: { $output .= "\n <select name=\"resolution\"\n onchange=\"document.changeform.knob["; #line 190 "template\en\default\bug\knob.html.tmpl" $output .= $stash->get('knum'); $output .= "].checked=true\">"; #line 193 "template\en\default\bug\knob.html.tmpl" # FOREACH do { my ($_tt_value, $_tt_error, $_tt_oldloop); my $_tt_list = $stash->get(['bug', 0, 'choices', 0, 'resolution', 0]); unless (UNIVERSAL::isa($_tt_list, 'Template::Iterator')) { $_tt_list = Template::Config->iterator($_tt_list) || die $Template::Config::ERROR, "\n"; } ($_tt_value, $_tt_error) = $_tt_list->get_first(); eval { $_tt_oldloop = $stash->get('loop') }; $stash->set('loop', $_tt_list); eval { LOOP: while (! $_tt_error) { $stash->{'r'} = $_tt_value; $output .= "\n <option value=\""; #line 192 "template\en\default\bug\knob.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('r'); &$_tt_filter($output); }; $output .= "\">"; #line 192 "template\en\default\bug\knob.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['get_resolution', [ $stash->get('r') ]]); &$_tt_filter($output); }; $output .= "</option>";; ($_tt_value, $_tt_error) = $_tt_list->get_next(); } }; $stash->set('loop', $_tt_oldloop); die $@ if $@; $_tt_error = 0 if $_tt_error && $_tt_error eq Template::Constants::STATUS_DONE; die $_tt_error if $_tt_error; }; $output .= "\n </select>\n <br>"; #line 196 "template\en\default\bug\knob.html.tmpl" $stash->set('knum', $stash->get('knum') + 1); } }; if ($@) { $_tt_error = $context->catch($@, \$output); die $_tt_error unless $_tt_error->type eq 'return'; } return $output; }, 'initial_action' => sub { my $context = shift || die "template sub called without context\n"; my $stash = $context->stash; my $output = ''; my $_tt_error; eval { BLOCK: { $output .= "\n "; #line 185 "template\en\default\bug\knob.html.tmpl" if (! $stash->get('initial_action_shown')) { $output .= "\n <input type=\"radio\" id=\"knob-leave\" name=\"knob\" value=\"none\" checked=\"checked\">\n <label for=\"knob-leave\">\n Leave as <b>"; #line 180 "template\en\default\bug\knob.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['status_descs', 0, $stash->get(['bug', 0, 'bug_status', 0]), 0]); &$_tt_filter($output); }; $output .= " "; #line 181 "template\en\default\bug\knob.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['get_resolution', [ $stash->get(['bug', 0, 'resolution', 0]) ]]); &$_tt_filter($output); }; $output .= "</b>\n </label>\n <br>"; #line 184 "template\en\default\bug\knob.html.tmpl" $stash->set('initial_action_shown', 1); } } }; if ($@) { $_tt_error = $context->catch($@, \$output); die $_tt_error unless $_tt_error->type eq 'return'; } return $output; }, },});
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -