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

📄 edit.html.tmpl

📁 buzilla软件
💻 TMPL
📖 第 1 页 / 共 2 页
字号:
    #line 242 "template\en\default\attachment\edit.html.tmpl"    if ($stash->get(['attachment', 0, 'isobsolete', 0])) {    $output .=  'checked="checked"';    }        $output .=  ">\n          <label for=\"isobsolete\">obsolete</label>";    #line 248 "template\en\default\attachment\edit.html.tmpl"    if (($stash->get(['Param', [ 'insidergroup' ]]) && $stash->get(['user', 0, 'in_group', [ $stash->get(['Param', [ 'insidergroup' ]]) ]]))) {    $output .=  "\n            <input type=\"checkbox\" id=\"isprivate\" name=\"isprivate\" value=\"1\"";    #line 246 "template\en\default\attachment\edit.html.tmpl"    if ($stash->get(['attachment', 0, 'isprivate', 0])) {    $output .=  ' checked';    }        $output .=  ">\n            <label for=\"isprivate\">private</label><br>";    }        $output .=  "\n          <br>\n        </small>\n";    #line 255 "template\en\default\attachment\edit.html.tmpl"    if ($stash->get(['flag_types', 0, 'size', 0]) > 0) {    #line 253 "template\en\default\attachment\edit.html.tmpl"    $output .=  $context->process('flag/list.html.tmpl', { 'bug_id' => $stash->get(['attachment', 0, 'bug_id', 0]), 'attach_id' => $stash->get(['attachment', 0, 'id', 0]) });    $output .=  "<br>";    }        $output .=  "\n\n        <div id=\"smallCommentFrame\">\n          <b><small><label for=\"comment\">Comment</label> (on the\n          ";    #line 259 "template\en\default\attachment\edit.html.tmpl"    $output .=  $stash->get(['terms', 0, 'bug', 0]);    $output .=  "):</small></b><br>";    #line 260 "template\en\default\attachment\edit.html.tmpl"    $output .=  $context->include('global/textarea.html.tmpl', { 'id' => 'comment', 'name' => 'comment', 'minrows' => 5, 'cols' => 25, 'wrap' => 'soft' });    $output .=  "<br>\n        </div>\n\n        <input type=\"submit\" value=\"Submit\" id=\"update\"><br><br>\n        <strong>Actions:</strong>\n        <a href=\"attachment.cgi?id=";    #line 271 "template\en\default\attachment\edit.html.tmpl"    $output .=  $stash->get(['attachment', 0, 'id', 0]);    $output .=  "\">View</a>";    #line 274 "template\en\default\attachment\edit.html.tmpl"    if ($stash->get(['attachment', 0, 'ispatch', 0]) && $stash->get('patchviewerinstalled')) {    $output .=  "\n         | <a href=\"attachment.cgi?id=";    #line 273 "template\en\default\attachment\edit.html.tmpl"    $output .=  $stash->get(['attachment', 0, 'id', 0]);    $output .=  "&amp;action=diff\">Diff</a>";    }        #line 279 "template\en\default\attachment\edit.html.tmpl"    if ($stash->get(['Param', [ 'allow_attachment_deletion' ]]) && $stash->get(['user', 0, 'groups', 0, 'admin', 0]) && $stash->get(['attachment', 0, 'datasize', 0]) > 0) {    $output .=  "\n          | <a href=\"attachment.cgi?id=";    #line 278 "template\en\default\attachment\edit.html.tmpl"    $output .=  $stash->get(['attachment', 0, 'id', 0]);    $output .=  "&amp;action=delete\">Delete</a>";    }        $output .=  "\n      </td>\n";    #line 338 "template\en\default\attachment\edit.html.tmpl"    if (! $stash->get(['attachment', 0, 'datasize', 0])) {    $output .=  "\n        <td width=\"75%\"><b>The content of this attachment has been deleted.</b></td>";    }    elsif ($stash->get('isviewable')) {    $output .=  "\n        <td width=\"75%\">";    #line 286 "template\en\default\attachment\edit.html.tmpl"    $output .=  $context->include('global/textarea.html.tmpl', { 'id' => 'editFrame', 'name' => 'comment', 'style' => 'height: 400px; width: 100%; display: none', 'minrows' => 10, 'cols' => 80, 'wrap' => 'soft' });    $output .=  "\n          <iframe id=\"viewFrame\" src=\"attachment.cgi?id=";    #line 294 "template\en\default\attachment\edit.html.tmpl"    $output .=  $stash->get(['attachment', 0, 'id', 0]);    $output .=  "\" style=\"height: 400px; width: 100%;\">\n            <b>You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.\n            <a href=\"attachment.cgi?id=";    #line 296 "template\en\default\attachment\edit.html.tmpl"    $output .=  $stash->get(['attachment', 0, 'id', 0]);    $output .=  "\">View the attachment on a separate page</a>.</b>\n          </iframe>\n          <script type=\"text/javascript\">\n            <!--\n            if (typeof document.getElementById == \"function\") {";    #line 303 "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 309 "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>";    }    elsif ($stash->get(['attachment', 0, 'isurl', 0])) {    $output .=  "\n        <td width=\"75%\">\n          <a href=\"";    #line 317 "template\en\default\attachment\edit.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get(['attachment', 0, 'data', 0]);                &$_tt_filter($output);    };        $output .=  "\">";    #line 324 "template\en\default\attachment\edit.html.tmpl"    if ($stash->get(['attachment', 0, 'datasize', 0]) < 120) {    #line 319 "template\en\default\attachment\edit.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get(['attachment', 0, 'data', 0]);                &$_tt_filter($output);    };        }    else {    #line 321 "template\en\default\attachment\edit.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('html')                  || $context->throw($context->error);            # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('truncate', [ 80 ])                  || $context->throw($context->error);        $output .=  $stash->get(['attachment', 0, 'data', 0]);                &$_tt_filter($output);    };                    &$_tt_filter($output);    };        $output .=  "\n              &nbsp;...";    #line 323 "template\en\default\attachment\edit.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get(['attachment', 0, 'data', 0, 'match', [ ('' . ".*(.{20})") ], 0, 0]);                &$_tt_filter($output);    };        }        $output .=  "\n          </a>\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 331 "template\en\default\attachment\edit.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get(['attachment', 0, 'contenttype', 0]);                &$_tt_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 335 "template\en\default\attachment\edit.html.tmpl"    $output .=  $stash->get(['attachment', 0, 'id', 0]);    $output .=  "\">Download the attachment</a>.\n          </b></p>\n        </td>";    }        $output .=  "\n\n    </tr>\n\n  </table>\n\n  Attachments on this ";    #line 344 "template\en\default\attachment\edit.html.tmpl"    $output .=  $stash->get(['terms', 0, 'Bug', 0]);    $output .=  ":";    #line 352 "template\en\default\attachment\edit.html.tmpl"        # FOREACH     do {        my ($_tt_value, $_tt_error, $_tt_oldloop);        my $_tt_list = $stash->get('attachments');                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->{'a'} = $_tt_value;    #line 350 "template\en\default\attachment\edit.html.tmpl"    if ($stash->get('a') eq $stash->get(['attachment', 0, 'id', 0])) {    $output .=  "\n      ";    #line 347 "template\en\default\attachment\edit.html.tmpl"    $output .=  $stash->get('a');    }    else {    $output .=  "\n      <a href=\"attachment.cgi?id=";    #line 349 "template\en\default\attachment\edit.html.tmpl"    $output .=  $stash->get('a');    $output .=  "&amp;action=edit\">";    #line 349 "template\en\default\attachment\edit.html.tmpl"    $output .=  $stash->get('a');    $output .=  "</a>";    }        #line 351 "template\en\default\attachment\edit.html.tmpl"    if (!($stash->get(['loop', 0, 'last', 0]))) {    $output .=  ' |';    }    ;                ($_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</form>\n\n<br>\n";    #line 358 "template\en\default\attachment\edit.html.tmpl"    $output .=  $context->process('global/footer.html.tmpl');    $output .=  "\n";        } };        if ($@) {            $_tt_error = $context->catch($@, \$output);            die $_tt_error unless $_tt_error->type eq 'return';        }            return $output;    },    DEFBLOCKS => {    },});

⌨️ 快捷键说明

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