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

📄 edit.html.tmpl

📁 bugzilla的安装文件
💻 TMPL
📖 第 1 页 / 共 2 页
字号:
        # FILTER    $output .=  do {        my $output = '';        my $filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get('contenttype');                &$filter($output);    };        $output .=  "\"><br>\n\n          <input type=\"checkbox\" id=\"ispatch\" name=\"ispatch\" value=\"1\"";    #line 230 "template\en\default\attachment\edit.html.tmpl"    if ($stash->get('ispatch')) {    $output .=  'checked="checked"';    }        $output .=  ">\n          <label for=\"ispatch\">patch</label>\n          <input type=\"checkbox\" id=\"isobsolete\" name=\"isobsolete\" value=\"1\"";    #line 234 "template\en\default\attachment\edit.html.tmpl"    if ($stash->get('isobsolete')) {    $output .=  'checked="checked"';    }        $output .=  ">\n          <label for=\"isobsolete\">obsolete</label><br>";    #line 242 "template\en\default\attachment\edit.html.tmpl"    if (($stash->get(['Param', [ 'insidergroup' ]]) && $stash->get(['UserInGroup', [ $stash->get(['Param', [ 'insidergroup' ]]) ]]))) {    $output .=  "\n            <input type=\"checkbox\" name=\"isprivate\" value=\"1\"";    #line 238 "template\en\default\attachment\edit.html.tmpl"    if ($stash->get('isprivate')) {    $output .=  ' checked';    }        $output .=  "> private<br><br>";    }    else {    $output .=  "<br>";    }        $output .=  "\n";    #line 247 "template\en\default\attachment\edit.html.tmpl"    if ($stash->get(['flag_types', 0, 'size', 0]) > 0) {    #line 245 "template\en\default\attachment\edit.html.tmpl"    $output .=  $context->process('flag/list.html.tmpl', { 'bug_id' => $stash->get('bugid'), 'attach_id' => $stash->get('attachid') });    $output .=  "<br>";    }        $output .=  "\n\n        <div id=\"smallCommentFrame\">\n          <b>Comment (on the ";    #line 250 "template\en\default\attachment\edit.html.tmpl"    $output .=  $stash->get(['terms', 0, 'bug', 0]);    $output .=  "):</b><br>\n            <textarea name=\"comment\" rows=\"5\" cols=\"25\" wrap=\"soft\"></textarea><br>\n        </div>\n\n        <input type=\"submit\" value=\"Submit\"><br><br>\n        <strong>Actions:</strong> <a href=\"attachment.cgi?id=";    #line 255 "template\en\default\attachment\edit.html.tmpl"    $output .=  $stash->get('attachid');    $output .=  "\">View</a>";    #line 260 "template\en\default\attachment\edit.html.tmpl"    if ($stash->get('ispatch') && $stash->get('patchviewerinstalled')) {    $output .=  "\n         | <a href=\"attachment.cgi?id=";    #line 258 "template\en\default\attachment\edit.html.tmpl"    $output .=  $stash->get('attachid');    $output .=  "&action=diff\">Diff</a>";    }        $output .=  "\n        </small>\n      </td>\n";    #line 306 "template\en\default\attachment\edit.html.tmpl"    if ($stash->get('isviewable')) {    $output .=  "\n        <td width=\"75%\">\n          <textarea id=\"editFrame\" name=\"comment\" style=\"height: 400px; width: 100%; display: none;\" cols=\"80\" wrap=\"soft\"></textarea>\n          <iframe id=\"viewFrame\" src=\"attachment.cgi?id=";    #line 268 "template\en\default\attachment\edit.html.tmpl"    $output .=  $stash->get('attachid');    $output .=  "\" style=\"height: 400px; width: 100%;\">\n            <b>You cannot view the attachment while editing it because your browser does not support IFRAMEs.\n            <a href=\"attachment.cgi?id=";    #line 270 "template\en\default\attachment\edit.html.tmpl"    $output .=  $stash->get('attachid');    $output .=  "\">View the attachment on a separate page</a>.</b>\n          </iframe>\n          <script type=\"application/x-javascript\" language=\"JavaScript\">\n            <!--\n            if (typeof document.getElementById == \"function\") {";    #line 279 "template\en\default\attachment\edit.html.tmpl"    if ($stash->get('patchviewerinstalled')) {    $output .=  "\n              document.write('<iframe id=\"viewDiffFrame\" style=\"height: 400px; width: 100%; display: none;\"></iframe>');";    }        $output .=  "\n              document.write('<button type=\"button\" id=\"editButton\" onclick=\"editAsComment();\">Edit Attachment As Comment</button>');\n              document.write('<button type=\"button\" id=\"undoEditButton\" onclick=\"undoEditAsComment();\" style=\"display: none;\">Undo Edit As Comment</button>');\n              document.write('<button type=\"button\" id=\"redoEditButton\" onclick=\"redoEditAsComment();\" style=\"display: none;\">Redo Edit As Comment</button>');";    #line 287 "template\en\default\attachment\edit.html.tmpl"    if ($stash->get('patchviewerinstalled')) {    $output .=  "\n              document.write('<button type=\"button\" id=\"viewDiffButton\" onclick=\"viewDiff();\">View Attachment As Diff</button>');";    }        $output .=  "\n              document.write('<button type=\"button\" id=\"viewRawButton\" onclick=\"viewRaw();\" style=\"display: none;\">View Attachment As Raw</button>');\n            }\n            //-->\n          </script>\n        </td>";    }    else {    $output .=  "\n        <td id=\"noview\" width=\"50%\">\n          <p><b>\n            Attachment is not viewable in your browser because its MIME type \n            (";    #line 298 "template\en\default\attachment\edit.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get('contenttype');                &$filter($output);    };        $output .=  ") is not one that your browser is \n            able to display.\n          </b></p>\n          <p><b>\n            <a href=\"attachment.cgi?id=";    #line 302 "template\en\default\attachment\edit.html.tmpl"    $output .=  $stash->get('attachid');    $output .=  "\">Download the attachment</a>.\n          </b></p>\n        </td>";    }        $output .=  "\n\n    </tr>\n\n  </table>\n\n  Attachments on this ";    #line 312 "template\en\default\attachment\edit.html.tmpl"    $output .=  $stash->get(['terms', 0, 'Bug', 0]);    $output .=  ":";    #line 318 "template\en\default\attachment\edit.html.tmpl"        # FOREACH     do {        my ($value, $error, $oldloop);        my $list = $stash->get('attachments');                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->{'a'} = $value;    #line 318 "template\en\default\attachment\edit.html.tmpl"    if ($stash->get('a') eq $stash->get('attachid')) {    $output .=  "\n      #";    #line 315 "template\en\default\attachment\edit.html.tmpl"    $output .=  $stash->get('a');    }    else {    $output .=  "\n      <a href=\"attachment.cgi?id=";    #line 316 "template\en\default\attachment\edit.html.tmpl"    $output .=  $stash->get('a');    $output .=  "&amp;action=edit\">#";    #line 316 "template\en\default\attachment\edit.html.tmpl"    $output .=  $stash->get('a');    $output .=  "</a>";    }        #line 318 "template\en\default\attachment\edit.html.tmpl"    if (!($stash->get(['loop', 0, 'last', 0]))) {    $output .=  ' |';    }    ;                ($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\n</form>\n\n<br>\n";    #line 325 "template\en\default\attachment\edit.html.tmpl"    $output .=  $context->process('global/footer.html.tmpl');    $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 + -