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

📄 edit.html.tmpl

📁 buzilla软件
💻 TMPL
📖 第 1 页 / 共 5 页
字号:
#------------------------------------------------------------------------# Compiled template generated by the Template Toolkit version 2.20#------------------------------------------------------------------------Template::Document->new({    METADATA => {        'modtime' => '1185630730',        'name' => 'bug/edit.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 26 "template\en\default\bug\edit.html.tmpl"    $output .=  $context->process('global/variables.none.tmpl');    $output .=  "\n";    #line 28 "template\en\default\bug\edit.html.tmpl"    $output .=  $context->process('global/field-descs.none.tmpl');    $output .=  "\n";    #line 30 "template\en\default\bug\edit.html.tmpl"    $output .=  $context->process('bug/time.html.tmpl');    $output .=  "\n\n  <script type=\"text/javascript\">\n  <!--\n\n  /* Outputs a link to call replyToComment(); used to reduce HTML output */\n  function addReplyLink(id) {\n      /* XXX this should really be updated to use the DOM Core's\n       * createElement, but finding a container isn't trivial.\n       */\n      document.write('[<a href=\"#add_comment\" onclick=\"replyToComment(' + \n                     id + ');\">reply<' + '/a>]');\n  }\n\n  /* Adds the reply text to the `comment' textarea */\n  function replyToComment(id) {\n      /* pre id=\"comment_name_N\" */\n      var text_elem = document.getElementById('comment_text_'+id);\n      var text = getText(text_elem);\n\n      /* make sure we split on all newlines -- IE or Moz use \\r and \\n\n       * respectively.\n       */\n      text = text.split(/\\r|\\n/);\n\n      var replytext = \"\";\n      for (var i=0; i < text.length; i++) {\n          replytext += \"> \" + text[i] + \"\\n\"; \n      }\n\n      replytext = \"(In reply to comment #\" + id + \")\\n\" + replytext + \"\\n\";\n";    #line 66 "template\en\default\bug\edit.html.tmpl"    if ($stash->get(['Param', [ 'insidergroup' ]]) && $stash->get(['user', 0, 'in_group', [ $stash->get(['Param', [ 'insidergroup' ]]) ]])) {    $output .=  "\n      if (document.getElementById('isprivate-'+id).checked) {\n          document.getElementById('newcommentprivacy').checked = 'checked';\n      }";    }        $output .=  "\n\n      /* <textarea id=\"comment\"> */\n      var textarea = document.getElementById('comment');\n      textarea.value += replytext;\n\n      textarea.focus();\n  }\n\n  if (typeof Node == 'undefined') {\n      /* MSIE doesn't define Node, so provide a compatibility object */\n      window.Node = {\n          TEXT_NODE: 3,\n          ENTITY_REFERENCE_NODE: 5\n      };\n  }\n\n  /* Concatenates all text from element's childNodes. This is used\n   * instead of innerHTML because we want the actual text (and\n   * innerText is non-standard).\n   */\n  function getText(element) {\n      var child, text = \"\";\n      for (var i=0; i < element.childNodes.length; i++) {\n          child = element.childNodes[i];\n          var type = child.nodeType;\n          if (type == Node.TEXT_NODE || type == Node.ENTITY_REFERENCE_NODE) {\n              text += child.nodeValue;\n          } else {\n              /* recurse into nodes of other types */\n              text += getText(child);\n          }\n      }\n      return text;\n  }\n";    #line 121 "template\en\default\bug\edit.html.tmpl"    if ($stash->get(['user', 0, 'in_group', [ $stash->get(['Param', [ 'timetrackinggroup' ]]) ]])) {    $output .=  "\n  var fRemainingTime = ";    #line 103 "template\en\default\bug\edit.html.tmpl"    $output .=  $stash->get(['bug', 0, 'remaining_time', 0]);    $output .=  "; // holds the original value\n  function adjustRemainingTime() {\n      // subtracts time spent from remaining time\n      var new_time;\n\n      // prevent negative values if work_time > fRemainingTime\n      new_time =\n          Math.max(fRemainingTime - document.changeform.work_time.value, 0.0);\n      // get upto 2 decimal places\n      document.changeform.remaining_time.value =\n          Math.round(new_time * 100)/100;\n  }\n\n  function updateRemainingTime() {\n      // if the remaining time is changed manually, update fRemainingTime\n      fRemainingTime = document.changeform.remaining_time.value;\n  }\n";    }        $output .=  "\n\n  function updateCommentTagControl(checkbox, form) {\n      if (checkbox.checked) {\n          form.comment.className='bz_private';\n      } else {\n          form.comment.className='';\n      }\n  }\n\n  //-->\n  </script>\n\n<form name=\"changeform\" method=\"post\" action=\"process_bug.cgi\">\n\n  <input type=\"hidden\" name=\"delta_ts\" value=\"";    #line 136 "template\en\default\bug\edit.html.tmpl"    $output .=  $stash->get(['bug', 0, 'delta_ts', 0]);    $output .=  "\">\n  <input type=\"hidden\" name=\"longdesclength\" value=\"";    #line 137 "template\en\default\bug\edit.html.tmpl"    $output .=  $stash->get(['bug', 0, 'longdescs', 0, 'size', 0]);    $output .=  "\">\n  <input type=\"hidden\" name=\"id\" value=\"";    #line 138 "template\en\default\bug\edit.html.tmpl"    $output .=  $stash->get(['bug', 0, 'bug_id', 0]);    $output .=  "\">\n\n  ";    $output .=  "\n  <table>\n    <tr>\n      <td valign=\"top\">\n        <fieldset>\n          <legend>Details</legend>\n          <table>\n\n            ";    $output .=  "\n            <tr>\n              <td align=\"right\">\n                <label for=\"short_desc\" accesskey=\"s\"><b><u>S</u>ummary</b></label>:\n              </td>";    #line 153 "template\en\default\bug\edit.html.tmpl"    $output .=  $context->process('input', { 'inputname' => 'short_desc', 'size' => '60', 'colspan' => 2, 'maxlength' => 255 });    $output .=  "\n            </tr>\n\n            <tr>\n              <td colspan=\"3\">\n                <table>\n                  <tr>\n                    ";    $output .=  "\n                    <td valign=\"top\">";    #line 162 "template\en\default\bug\edit.html.tmpl"    $output .=  $context->process('section_details1');    $output .=  "</td>\n\n                    ";    $output .=  "\n                    <td valign=\"top\">";    #line 165 "template\en\default\bug\edit.html.tmpl"    $output .=  $context->process('section_details2');    $output .=  "</td>\n                  </tr>\n                </table>\n              </td>\n            </tr>\n\n            <tr>\n              <td colspan=\"3\"><hr size=\"1\"></td>\n            </tr>\n\n            ";    $output .=  "\n\n            <tr>\n              <td align=\"right\">\n                <label for=\"bug_file_loc\" accesskey=\"u\"><b>";    #line 185 "template\en\default\bug\edit.html.tmpl"    if ($stash->get(['bug', 0, 'bug_file_loc', 0]) && ! $stash->get(['bug', 0, 'bug_file_loc', 0, 'match', [ '^(javascript|data)' ]])) {    $output .=  "\n                    <a href=\"";    #line 182 "template\en\default\bug\edit.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get(['bug', 0, 'bug_file_loc', 0]);                &$_tt_filter($output);    };        $output .=  "\"><u>U</u>RL</a>";    }    else {    $output .=  "\n                    <u>U</u>RL";    }        $output .=  "</b></label>:\n              </td>";    #line 188 "template\en\default\bug\edit.html.tmpl"    $output .=  $context->process('input', { 'inputname' => 'bug_file_loc', 'size' => '60', 'colspan' => 2 });    $output .=  "\n            </tr>\n";    #line 198 "template\en\default\bug\edit.html.tmpl"    if ($stash->get(['Param', [ 'usestatuswhiteboard' ]])) {    $output .=  "\n              <tr>\n                <td align=\"right\">\n                  <label for=\"status_whiteboard\" accesskey=\"w\"><b><u>W</u>hiteboard</b></label>:\n                </td>";    #line 196 "template\en\default\bug\edit.html.tmpl"    $output .=  $context->process('input', { 'inputname' => 'status_whiteboard', 'size' => '60', 'colspan' => 2 });    $output .=  "\n              </tr>";    }        $output .=  "\n";    #line 209 "template\en\default\bug\edit.html.tmpl"    if ($stash->get('use_keywords')) {    $output .=  "\n              <tr>\n                <td align=\"right\">\n                  <label for=\"keywords\" accesskey=\"k\">\n                    <b><a href=\"describekeywords.cgi\"><u>K</u>eywords</a></b></label>:\n                </td>";    #line 206 "template\en\default\bug\edit.html.tmpl"    $output .=  $context->process('input', { 'inputname' => 'keywords', 'size' => 60, 'colspan' => 2, 'value' => $stash->get(['bug', 0, 'keywords', 0, 'join', [ ', ' ]]) });    $output .=  "\n              </tr>";    }        $output .=  "\n\n            ";    $output .=  "\n";    #line 213 "template\en\default\bug\edit.html.tmpl"    # USE    $stash->set('Bugzilla',                $context->plugin('Bugzilla'));    #line 214 "template\en\default\bug\edit.html.tmpl"    $stash->set('fields', $stash->get(['Bugzilla', 0, 'get_fields', [ { 'obsolete' => 0, 'custom' => 1  } ]]));        #line 223 "template\en\default\bug\edit.html.tmpl"    if ($stash->get('fields')) {    #line 222 "template\en\default\bug\edit.html.tmpl"        # FOREACH     do {        my ($_tt_value, $_tt_error, $_tt_oldloop);        my $_tt_list = $stash->get('fields');                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->{'field'} = $_tt_value;    $output .=  "\n                <tr>";    #line 218 "template\en\default\bug\edit.html.tmpl"    $output .=  $context->process('bug/field.html.tmpl', { 'value' => $stash->get(['bug', 0, $stash->get(['field', 0, 'name', 0]), 0]), 'editable' => $stash->get(['bug', 0, 'check_can_change_field', [ $stash->get(['field', 0, 'name', 0]), 0, 1 ]]), 'value_span' => 2 });    $output .=  "\n                </tr>";;                ($_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\n            ";    $output .=  "\n\n            <tr>";    #line 228 "template\en\default\bug\edit.html.tmpl"    $output .=  $context->process('dependencies', { 'dep' => { 'title' => 'Depends&nbsp;on', 'fieldname' => 'dependson'  } });    $output .=  "\n            </tr>\n\n            <tr>";    #line 233 "template\en\default\bug\edit.html.tmpl"    $output .=  $context->process('dependencies', { 'accesskey' => 'b', 'dep' => { 'title' => '<u>B</u>locks', 'fieldname' => 'blocked'  } });    $output .=  "\n            </tr>\n\n            <tr>\n              <th>&nbsp;</th>\n\n              <td colspan=\"2\">\n                <a href=\"showdependencytree.cgi?id=";    #line 241 "template\en\default\bug\edit.html.tmpl"    $output .=  $stash->get(['bug', 0, 'bug_id', 0]);    $output .=  "&amp;hide_resolved=1\">Show\n                   dependency tree</a>\n";    #line 247 "template\en\default\bug\edit.html.tmpl"    if ($stash->get(['Param', [ 'webdotbase' ]])) {    $output .=  "\n                  - <a href=\"showdependencygraph.cgi?id=";    #line 245 "template\en\default\bug\edit.html.tmpl"    $output .=  $stash->get(['bug', 0, 'bug_id', 0]);    $output .=  "\">Show\n                       dependency graph</a>";    }        $output .=  "\n              </td>\n            </tr>\n          </table>\n        </fieldset>\n      </td>\n\n      ";    $output .=  "\n      <script type=\"text/javascript\">\n        <!--\n        var v = document.body.offsetHeight;\n        //-->\n      </script>\n\n      <td valign=\"top\">\n        ";    $output .=  "\n        <fieldset>\n          <legend>People</legend>";    #line 266 "template\en\default\bug\edit.html.tmpl"    $output .=  $context->process('section_people');    $output .=  "\n        </fieldset>\n\n        ";    #line 270 "template\en\default\bug\edit.html.tmpl"    $stash->set('show_bug_flags', 0);        #line 276 "template\en\default\bug\edit.html.tmpl"        # FOREACH     do {        my ($_tt_value, $_tt_error, $_tt_oldloop);        my $_tt_list = $stash->get(['bug', 0, 'flag_types', 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->{'type'} = $_tt_value;    #line 275 "template\en\default\bug\edit.html.tmpl"    if (($stash->get(['type', 0, 'flags', 0]) && $stash->get(['type', 0, 'flags', 0, 'size', 0]) > 0) || ($stash->get(['user', 0, 'id', 0]) && $stash->get(['type', 0, 'is_active', 0]))) {    #line 273 "template\en\default\bug\edit.html.tmpl"    $stash->set('show_bug_flags', 1);        #line 274 "template\en\default\bug\edit.html.tmpl"    last LOOP;    }    ;                ($_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;    };        #line 304 "template\en\default\bug\edit.html.tmpl"    if ($stash->get('show_bug_flags')) {    $output .=  "\n          <fieldset>\n            <legend>Flags</legend>\n            <table cellspacing=\"1\" cellpadding=\"1\">\n              <tr>\n                <td colspan=\"2\" valign=\"top\">";    #line 299 "template\en\default\bug\edit.html.tmpl"    if ($stash->get(['user', 0, 'id', 0])) {    #line 288 "template\en\default\bug\edit.html.tmpl"    if ($stash->get(['bug', 0, 'flag_types', 0, 'size', 0]) > 0) {    #line 285 "template\en\default\bug\edit.html.tmpl"    $output .=  $context->process('flag/list.html.tmpl', { 'flag_no_header' => 1, 'flag_types' => $stash->get(['bug', 0, 'flag_types', 0]), 'any_flags_requesteeble' => $stash->get(['bug', 0, 'any_flags_requesteeble', 0]) });    }        }    else {    #line 298 "template\en\default\bug\edit.html.tmpl"        # FOREACH     do {        my ($_tt_value, $_tt_error, $_tt_oldloop);        my $_tt_list = $stash->get(['bug', 0, 'flag_types', 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->{'type'} = $_tt_value;    #line 297 "template\en\default\bug\edit.html.tmpl"        # FOREACH     do {        my ($_tt_value, $_tt_error, $_tt_oldloop);        my $_tt_list = $stash->get(['type', 0, 'flags', 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->{'flag'} = $_tt_value;    #line 292 "template\en\default\bug\edit.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get(['flag', 0, 'setter', 0, 'nick', 0]);                &$_tt_filter($output);    };        $output .=  ":\n                          ";    #line 293 "template\en\default\bug\edit.html.tmpl"        # FILTER    $output .=  do {

⌨️ 快捷键说明

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