⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 knob.html.tmpl

📁 buzilla软件
💻 TMPL
📖 第 1 页 / 共 2 页
字号:
#------------------------------------------------------------------------# Compiled template generated by the Template Toolkit version 2.20#------------------------------------------------------------------------Template::Document->new({    METADATA => {        'modtime' => '1176231754',        'name' => 'bug/knob.html.tmpl',    },    BLOCK => sub {        my $context = shift || die "template sub called without context\n";        my $stash   = $context->stash;        my $output  = '';        my $_tt_error;                eval { BLOCK: {    $output .=  "\n";    $output .=  "\n";    #line 23 "template\en\default\bug\knob.html.tmpl"    $output .=  $context->process('global/variables.none.tmpl');    $output .=  "\n\n";    $output .=  "\n\n<br>\n<div id=\"knob\">\n  <div id=\"knob-options\">\n";    #line 31 "template\en\default\bug\knob.html.tmpl"    $stash->set('knum', 1);        #line 32 "template\en\default\bug\knob.html.tmpl"    $stash->set('initial_action_shown', 0);        $output .=  "\n";    #line 42 "template\en\default\bug\knob.html.tmpl"    if ($stash->get(['bug', 0, 'isunconfirmed', 0]) && $stash->get(['bug', 0, 'user', 0, 'canconfirm', 0])) {    #line 35 "template\en\default\bug\knob.html.tmpl"    $output .=  $context->process('initial_action');    $output .=  "\n    <input type=\"radio\" id=\"knob-confirm\" name=\"knob\" value=\"confirm\">\n    <label for=\"knob-confirm\">\n      Confirm ";    #line 38 "template\en\default\bug\knob.html.tmpl"    $output .=  $stash->get(['terms', 0, 'bug', 0]);    $output .=  " (change status to <b>";    #line 38 "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, 'NEW', 0]);                &$_tt_filter($output);    };        $output .=  "</b>)\n    </label>\n    <br>";    #line 41 "template\en\default\bug\knob.html.tmpl"    $stash->set('knum', $stash->get('knum') + 1);        }        $output .=  "\n";    #line 55 "template\en\default\bug\knob.html.tmpl"    if ($stash->get(['bug', 0, 'isopened', 0]) && $stash->get(['bug', 0, 'bug_status', 0]) ne 'ASSIGNED' && $stash->get(['bug', 0, 'user', 0, 'canedit', 0]) && (! $stash->get(['bug', 0, 'isunconfirmed', 0]) || $stash->get(['bug', 0, 'user', 0, 'canconfirm', 0]))) {    #line 46 "template\en\default\bug\knob.html.tmpl"    $output .=  $context->process('initial_action');    $output .=  "\n    <input type=\"radio\" id=\"knob-accept\" name=\"knob\" value=\"accept\">\n    <label for=\"knob-accept\">\n      Accept ";    #line 49 "template\en\default\bug\knob.html.tmpl"    $output .=  $stash->get(['terms', 0, 'bug', 0]);    $output .=  " (";    #line 50 "template\en\default\bug\knob.html.tmpl"    if ($stash->get(['bug', 0, 'isunconfirmed', 0])) {    $output .=  "confirm ";    #line 50 "template\en\default\bug\knob.html.tmpl"    $output .=  $stash->get(['terms', 0, 'bug', 0]);    $output .=  ", and ";    }        $output .=  "change\n      status to <b>";    #line 51 "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, 'ASSIGNED', 0]);                &$_tt_filter($output);    };        $output .=  "</b>)\n    </label>\n    <br>";    #line 54 "template\en\default\bug\knob.html.tmpl"    $stash->set('knum', $stash->get('knum') + 1);        }        $output .=  "\n";    #line 160 "template\en\default\bug\knob.html.tmpl"    if ($stash->get(['bug', 0, 'user', 0, 'canedit', 0]) || $stash->get(['bug', 0, 'user', 0, 'isreporter', 0])) {    #line 159 "template\en\default\bug\knob.html.tmpl"    if ($stash->get(['bug', 0, 'isopened', 0])) {    #line 68 "template\en\default\bug\knob.html.tmpl"    if ($stash->get(['bug', 0, 'resolution', 0])) {    #line 60 "template\en\default\bug\knob.html.tmpl"    $output .=  $context->process('initial_action');    $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 64 "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 67 "template\en\default\bug\knob.html.tmpl"    $stash->set('knum', $stash->get('knum') + 1);        }        $output .=  "\n";    #line 70 "template\en\default\bug\knob.html.tmpl"    $output .=  $context->process('initial_action');    $output .=  "\n      <input type=\"radio\" id=\"knob-resolve\" name=\"knob\" value=\"resolve\">\n      <label for=\"knob-resolve\">\n        Resolve ";    #line 73 "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>  ";    #line 76 "template\en\default\bug\knob.html.tmpl"    $output .=  $context->process('select_resolution');    $output .=  "\n";    #line 78 "template\en\default\bug\knob.html.tmpl"    $output .=  $context->process('duplicate');    $output .=  "\n";    #line 121 "template\en\default\bug\knob.html.tmpl"    if ($stash->get(['bug', 0, 'user', 0, 'canedit', 0])) {    $output .=  "\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 84 "template\en\default\bug\knob.html.tmpl"    $output .=  $stash->get(['terms', 0, 'bug', 0]);    $output .=  " to\n        </label>";    #line 86 "template\en\default\bug\knob.html.tmpl"        # CAPTURE    $stash->set('safe_assigned_to', do {        my $output = '';        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('js')                  || $context->throw($context->error);        #line 86 "template\en\default\bug\knob.html.tmpl"    $output .=  $stash->get(['bug', 0, 'assigned_to', 0, 'login', 0]);                &$_tt_filter($output);    };            $output;    });        #line 1 "template\en\default\bug\knob.html.tmpl"    $output .=  $context->include('global/userselect.html.tmpl', { 'id' => 'assigned_to', 'name' => 'assigned_to', 'value' => $stash->get(['bug', 0, 'assigned_to', 0, 'login', 0]), 'size' => 32, 'onchange' => ("if ((this.value != '" . $stash->get('safe_assigned_to') . "') && (this.value != '')) {\n                               document.changeform.knob[" . $stash->get('knum') . "].checked=true;\n                          }") });    $output .=  "\n        <br>";    #line 103 "template\en\default\bug\knob.html.tmpl"    if ($stash->get(['bug', 0, 'isunconfirmed', 0]) && $stash->get(['bug', 0, 'user', 0, 'canconfirm', 0])) {    $output .=  "\n          &nbsp;&nbsp;&nbsp;&nbsp;<input type=\"checkbox\" id=\"andconfirm\" name=\"andconfirm\">\n          <label for=\"andconfirm\">\n            and confirm ";    #line 100 "template\en\default\bug\knob.html.tmpl"    $output .=  $stash->get(['terms', 0, 'bug', 0]);    $output .=  " (change status to <b>";    #line 100 "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, 'NEW', 0]);                &$_tt_filter($output);    };        $output .=  "</b>)\n          </label>\n          <br>";    }        #line 104 "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 108 "template\en\default\bug\knob.html.tmpl"    $output .=  $stash->get(['terms', 0, 'bug', 0]);    $output .=  " to default assignee";    #line 109 "template\en\default\bug\knob.html.tmpl"    if ($stash->get(['Param', [ 'useqacontact' ]])) {    $output .=  ' and QA contact,';    }        $output .=  "\n          and add Default CC of selected component\n        </label>\n        <br>";    #line 119 "template\en\default\bug\knob.html.tmpl"    if ($stash->get(['bug', 0, 'isunconfirmed', 0]) && $stash->get(['bug', 0, 'user', 0, 'canconfirm', 0])) {    $output .=  "\n          &nbsp;&nbsp;&nbsp;&nbsp;<input type=\"checkbox\" id=\"compconfirm\" name=\"compconfirm\">\n          <label for=\"compconfirm\">\n            and confirm ";    #line 116 "template\en\default\bug\knob.html.tmpl"    $output .=  $stash->get(['terms', 0, 'bug', 0]);    $output .=  " (change status to <b>";    #line 116 "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, 'NEW', 0]);                &$_tt_filter($output);    };        $output .=  "</b>)\n          </label>\n          <br>";    }        #line 120 "template\en\default\bug\knob.html.tmpl"    $stash->set('knum', $stash->get('knum') + 1);        }        }    else {    #line 140 "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]))) {    #line 125 "template\en\default\bug\knob.html.tmpl"    $output .=  $context->process('initial_action');    $output .=  "\n        <input type=\"radio\" id=\"knob-change-resolution\" name=\"knob\" value=\"change_resolution\">\n        <label for=\"knob-change-resolution\">\n          Change <a href=\"page.cgi?id=fields.html#resolution\">resolution</a> to\n        </label>";    #line 130 "template\en\default\bug\knob.html.tmpl"    $output .=  $context->process('select_resolution');    $output .=  "\n";    #line 132 "template\en\default\bug\knob.html.tmpl"    $output .=  $context->process('duplicate');    $output .=  "\n\n        <input type=\"radio\" id=\"knob-reopen\" name=\"knob\" value=\"reopen\">\n        <label for=\"knob-reopen\">\n          Reopen ";    #line 136 "template\en\default\bug\knob.html.tmpl"    $output .=  $stash->get(['terms', 0, 'bug', 0]);    $output .=  "\n        </label>\n        <br>";    #line 139 "template\en\default\bug\knob.html.tmpl"    $stash->set('knum', $stash->get('knum') + 1);        }

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -