📄 diff-header.html.tmpl
字号:
my ($value, $error, $oldloop); my $list = $stash->get('other_patches'); 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->{'patch'} = $value; $output .= "\n <option value=\""; #line 251 "template\en\default\attachment\diff-header.html.tmpl" $output .= $stash->get(['patch', 0, 'id', 0]); $output .= "\""; #line 253 "template\en\default\attachment\diff-header.html.tmpl" if ($stash->get(['patch', 0, 'selected', 0])) { $output .= " selected"; } $output .= "\n >"; #line 254 "template\en\default\attachment\diff-header.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['patch', 0, 'desc', 0]); &$filter($output); }; $output .= "</option>";; ($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 </select>\n and this patch\n <input type=\"submit\" value=\"Diff\">\n <input type=\"hidden\" name=\"action\" value=\"interdiff\">\n <input type=\"hidden\" name=\"newid\" value=\""; #line 261 "template\en\default\attachment\diff-header.html.tmpl" $output .= $stash->get('attachid'); $output .= "\">\n <input type=\"hidden\" name=\"headers\" value=\""; #line 262 "template\en\default\attachment\diff-header.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('headers'); &$filter($output); }; $output .= "\">\n </form>"; } $output .= "\n <br>"; } else { #line 272 "template\en\default\attachment\diff-header.html.tmpl" if ($stash->get('headers')) { $output .= "\n <a href=\"attachment.cgi?oldid="; #line 269 "template\en\default\attachment\diff-header.html.tmpl" $output .= $stash->get('oldid'); $output .= "&newid="; #line 269 "template\en\default\attachment\diff-header.html.tmpl" $output .= $stash->get('newid'); $output .= "&action=interdiff&format=raw\">Raw Unified</a>\n |"; } } $output .= "\n \n"; $output .= "\n<a href=\"#\"\n onmouseover=\"lastStatus = window.status; window.status='Collapse All'; return true\"\n onmouseout=\"window.status = lastStatus; return true\"\n onclick=\"return collapse_all()\">Collapse All</a> | \n<a href=\"#\"\n onmouseover=\"lastStatus = window.status; window.status='Expand All'; return true\"\n onmouseout=\"window.status = lastStatus; return true\"\n onclick=\"return expand_all()\">Expand All</a>\n"; #line 308 "template\en\default\attachment\diff-header.html.tmpl" if ($stash->get('do_context')) { $output .= "\n "; $output .= "\n | <span style='font-weight: bold'>Context:</span>"; #line 295 "template\en\default\attachment\diff-header.html.tmpl" if ($stash->get('context') eq 'patch') { $output .= "\n (<strong>Patch</strong> / "; } else { $output .= "\n (<a href=\""; #line 293 "template\en\default\attachment\diff-header.html.tmpl" $output .= $context->process('diffurl', { 'id' => $stash->get('attachid') }); $output .= "&headers="; #line 293 "template\en\default\attachment\diff-header.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('headers'); &$filter($output); }; $output .= "\">Patch</a> / "; } #line 301 "template\en\default\attachment\diff-header.html.tmpl" if ($stash->get('context') eq 'file') { $output .= "\n <strong>File</strong> /"; } else { $output .= "\n <a href=\""; #line 299 "template\en\default\attachment\diff-header.html.tmpl" $output .= $context->process('diffurl', { 'id' => $stash->get('attachid') }); $output .= "&headers="; #line 299 "template\en\default\attachment\diff-header.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('headers'); &$filter($output); }; $output .= "&context=file\">File</a> / "; } $output .= "\n"; #line 304 "template\en\default\attachment\diff-header.html.tmpl" if ($stash->get('context') eq 'patch' || $stash->get('context') eq 'file') { #line 304 "template\en\default\attachment\diff-header.html.tmpl" $stash->set('context', 3); } $output .= "\n "; $output .= "\n <form style=\"display: inline\" action=\"\"><input type=\"hidden\" name=\"action\" value=\"diff\"><input type=\"hidden\" name=\"id\" value=\""; #line 306 "template\en\default\attachment\diff-header.html.tmpl" $output .= $stash->get('attachid'); $output .= "\"><input type=\"hidden\" name=\"collapsed\" value=\""; #line 306 "template\en\default\attachment\diff-header.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('collapsed'); &$filter($output); }; $output .= "\"><input type=\"hidden\" name=\"headers\" value=\""; #line 306 "template\en\default\attachment\diff-header.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('headers'); &$filter($output); }; $output .= "\"><input type=\"text\" name=\"context\" value=\""; #line 306 "template\en\default\attachment\diff-header.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('context'); &$filter($output); }; $output .= "\" size=\"3\"></form>)"; } $output .= "\n"; #line 329 "template\en\default\attachment\diff-header.html.tmpl" if ($stash->get('warning')) { $output .= "\n<h2 class=\"warning\">Warning: "; #line 319 "template\en\default\attachment\diff-header.html.tmpl" if ($stash->get('warning') eq 'interdiff1') { $output .= "\n this difference between two patches may show things in the wrong places due\n to a limitation in "; #line 316 "template\en\default\attachment\diff-header.html.tmpl" $output .= $stash->get(['terms', 0, 'Bugzilla', 0]); $output .= " when comparing patches with different\n sets of files."; } #line 323 "template\en\default\attachment\diff-header.html.tmpl" if ($stash->get('warning') eq 'interdiff2') { $output .= "\n this difference between two patches may be inaccurate due to a limitation in\n "; #line 321 "template\en\default\attachment\diff-header.html.tmpl" $output .= $stash->get(['terms', 0, 'Bugzilla', 0]); $output .= " when comparing patches made against different revisions."; } $output .= "\n</h2>"; } else { $output .= "\n <br><br>"; } $output .= "\n \n"; $output .= "\n<form name=\"checkboxform\" action=\"\">\n<input type=\"checkbox\" name=\"restore_indicator\" style=\"display: none\">\n\n\n"; } }; if ($@) { $error = $context->catch($@, \$output); die $error unless $error->type eq 'return'; } return $output; }, DEFBLOCKS => { 'viewurl' => sub { my $context = shift || die "template sub called without context\n"; my $stash = $context->stash; my $output = ''; my $error; eval { BLOCK: { $output .= "attachment.cgi?id="; #line 208 "template\en\default\attachment\diff-header.html.tmpl" $output .= $stash->get('id'); } }; if ($@) { $error = $context->catch($@, \$output); die $error unless $error->type eq 'return'; } return $output; }, 'editurl' => sub { my $context = shift || die "template sub called without context\n"; my $stash = $context->stash; my $output = ''; my $error; eval { BLOCK: { #line 208 "template\en\default\attachment\diff-header.html.tmpl" $output .= $context->process('viewurl'); $output .= "&action=edit"; } }; if ($@) { $error = $context->catch($@, \$output); die $error unless $error->type eq 'return'; } return $output; }, 'diffurl' => sub { my $context = shift || die "template sub called without context\n"; my $stash = $context->stash; my $output = ''; my $error; eval { BLOCK: { #line 208 "template\en\default\attachment\diff-header.html.tmpl" $output .= $context->process('viewurl'); $output .= "&action=diff"; } }; if ($@) { $error = $context->catch($@, \$output); die $error unless $error->type eq 'return'; } return $output; }, },});
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -