📄 midair.html.tmpl
字号:
#------------------------------------------------------------------------# Compiled template generated by the Template Toolkit version 2.20#------------------------------------------------------------------------Template::Document->new({ METADATA => { 'modtime' => '1202512834', 'name' => 'bug/process/midair.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\n"; $output .= "\n\n"; #line 36 "template\en\default\bug\process\midair.html.tmpl" # USE $stash->set('Bugzilla', $context->plugin('Bugzilla')); #line 37 "template\en\default\bug\process\midair.html.tmpl" $stash->set('cgi', $stash->get(['Bugzilla', 0, 'cgi', 0])); $output .= "\n"; #line 39 "template\en\default\bug\process\midair.html.tmpl" $output .= $context->process('global/variables.none.tmpl'); $output .= "\n"; #line 43 "template\en\default\bug\process\midair.html.tmpl" if (!($stash->get('header_done'))) { #line 42 "template\en\default\bug\process\midair.html.tmpl" $output .= $context->process('bug/process/header.html.tmpl'); } $output .= "\n\n<h1>Mid-air collision detected!</h1>\n\n<p>\n Someone else has made changes to\n "; #line 0 "template\en\default\bug\process\midair.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('none') || $context->throw($context->error); # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('bug_link', [ $stash->get('bug_id') ]) || $context->throw($context->error); $output .= ($stash->get(['terms', 0, 'bug', 0]) . " " . $stash->get('bug_id')); &$_tt_filter($output); }; &$_tt_filter($output); }; $output .= "\n at the same time you were trying to.\n The changes made were:\n</p>\n\n<p>"; #line 55 "template\en\default\bug\process\midair.html.tmpl" $output .= $context->process('bug/activity/table.html.tmpl', { 'incomplete_data' => 0 }); $output .= "\n</p>\n"; #line 65 "template\en\default\bug\process\midair.html.tmpl" if ($stash->get(['comments', 0, 'size', 0]) > $stash->get('start_at')) { $output .= "\n<p>\n Added the comment(s):\n <blockquote>"; #line 62 "template\en\default\bug\process\midair.html.tmpl" $output .= $context->process('bug/comments.html.tmpl', { 'bug' => { 'bug_id' => $stash->get('bug_id') } }); $output .= "\n </blockquote>\n</p>"; } $output .= "\n"; #line 74 "template\en\default\bug\process\midair.html.tmpl" if ($stash->get(['cgi', 0, 'param', [ 'comment' ]])) { $output .= "\n<p>\n Your comment was:<br>\n <blockquote><pre class=\"bz_comment_text\">"; #line 71 "template\en\default\bug\process\midair.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('wrap_comment') || $context->throw($context->error); $output .= $stash->get(['cgi', 0, 'param', [ 'comment' ]]); &$_tt_filter($output); }; &$_tt_filter($output); }; $output .= "\n </pre></blockquote>\n</p>"; } $output .= "\n\n<p>\nYou have the following choices:\n</p>\n\n<ul>\n <li>\n <form method=\"post\" action=\"process_bug.cgi\">"; #line 83 "template\en\default\bug\process\midair.html.tmpl" $output .= $context->process('global/hidden-fields.html.tmpl', { 'exclude' => ('' . "^Bugzilla_(login|password)") }); $output .= "\n <input type=\"submit\" id=\"process\" value=\"Submit my changes anyway\">\n This will cause all of the above changes to be overwritten"; #line 86 "template\en\default\bug\process\midair.html.tmpl" if ($stash->get(['comments', 0, 'size', 0]) > $stash->get('start_at')) { $output .= ', except for the added comment(s)'; } $output .= ".\n </form>\n </li>\n <li>\n Throw away my changes, and\n "; #line 0 "template\en\default\bug\process\midair.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('none') || $context->throw($context->error); # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('bug_link', [ $stash->get('bug_id') ]) || $context->throw($context->error); $output .= ("revisit " . $stash->get(['terms', 0, 'bug', 0]) . " " . $stash->get('bug_id')); &$_tt_filter($output); }; &$_tt_filter($output); }; $output .= "\n </li>\n</ul>\n"; #line 95 "template\en\default\bug\process\midair.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 + -