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

📄 diff-header.html.tmpl

📁 buzilla软件
💻 TMPL
📖 第 1 页 / 共 2 页
字号:
        my ($_tt_value, $_tt_error, $_tt_oldloop);        my $_tt_list = $stash->get('other_patches');                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->{'patch'} = $_tt_value;    $output .=  "\n        <option value=\"";    #line 256 "template\en\default\attachment\diff-header.html.tmpl"    $output .=  $stash->get(['patch', 0, 'id', 0]);    $output .=  "\"";    #line 257 "template\en\default\attachment\diff-header.html.tmpl"    if ($stash->get(['patch', 0, 'selected', 0])) {    $output .=  " selected";    }        $output .=  "\n        >";    #line 258 "template\en\default\attachment\diff-header.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get(['patch', 0, 'desc', 0]);                &$_tt_filter($output);    };        $output .=  "</option>";;                ($_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      </select>\n      and this patch\n      <input type=\"submit\" id=\"diff\" value=\"Diff\">\n      <input type=\"hidden\" name=\"action\" value=\"interdiff\">\n      <input type=\"hidden\" name=\"newid\" value=\"";    #line 264 "template\en\default\attachment\diff-header.html.tmpl"    $output .=  $stash->get('attachid');    $output .=  "\">\n      <input type=\"hidden\" name=\"headers\" value=\"";    #line 265 "template\en\default\attachment\diff-header.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get('headers');                &$_tt_filter($output);    };        $output .=  "\">\n    </form>";    }        $output .=  "\n  <br>";    }    else {    #line 273 "template\en\default\attachment\diff-header.html.tmpl"    if ($stash->get('headers')) {    $output .=  "\n    <a href=\"attachment.cgi?oldid=";    #line 271 "template\en\default\attachment\diff-header.html.tmpl"    $output .=  $stash->get('oldid');    $output .=  "&amp;newid=";    #line 271 "template\en\default\attachment\diff-header.html.tmpl"    $output .=  $stash->get('newid');    $output .=  "&amp;action=interdiff&amp;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 305 "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 293 "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 292 "template\en\default\attachment\diff-header.html.tmpl"    $output .=  $context->process('diffurl', { 'id' => $stash->get('attachid') });    $output .=  "&amp;headers=";    #line 292 "template\en\default\attachment\diff-header.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('url_quote')                  || $context->throw($context->error);        $output .=  $stash->get('headers');                &$_tt_filter($output);    };        $output .=  "\">Patch</a> / ";    }        #line 298 "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 297 "template\en\default\attachment\diff-header.html.tmpl"    $output .=  $context->process('diffurl', { 'id' => $stash->get('attachid') });    $output .=  "&amp;headers=";    #line 297 "template\en\default\attachment\diff-header.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('url_quote')                  || $context->throw($context->error);        $output .=  $stash->get('headers');                &$_tt_filter($output);    };        $output .=  "&amp;context=file\">File</a> / ";    }        $output .=  "\n";    #line 302 "template\en\default\attachment\diff-header.html.tmpl"    if ($stash->get('context') eq 'patch' || $stash->get('context') eq 'file') {    #line 301 "template\en\default\attachment\diff-header.html.tmpl"    $stash->set('context', 3);        }        $output .=  "\n  ";    $output .=  "\n  <form style=\"display: inline\" action=\"attachment.cgi\"><input type=\"hidden\" name=\"action\" value=\"diff\"><input type=\"hidden\" name=\"id\" value=\"";    #line 304 "template\en\default\attachment\diff-header.html.tmpl"    $output .=  $stash->get('attachid');    $output .=  "\"><input type=\"hidden\" name=\"collapsed\" value=\"";    #line 304 "template\en\default\attachment\diff-header.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get('collapsed');                &$_tt_filter($output);    };        $output .=  "\"><input type=\"hidden\" name=\"headers\" value=\"";    #line 304 "template\en\default\attachment\diff-header.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get('headers');                &$_tt_filter($output);    };        $output .=  "\"><input type=\"text\" name=\"context\" value=\"";    #line 304 "template\en\default\attachment\diff-header.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get('context');                &$_tt_filter($output);    };        $output .=  "\" size=\"3\"></form>)";    }        $output .=  "\n";    #line 321 "template\en\default\attachment\diff-header.html.tmpl"    if ($stash->get('warning')) {    $output .=  "\n<h2 class=\"warning\">Warning: ";    #line 313 "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 311 "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 317 "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 316 "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=\"attachment.cgi\">\n<input type=\"checkbox\" name=\"restore_indicator\" style=\"display: none\">\n\n\n";        } };        if ($@) {            $_tt_error = $context->catch($@, \$output);            die $_tt_error unless $_tt_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 $_tt_error;                        eval { BLOCK: {        $output .=  "attachment.cgi?id=";        #line 207 "template\en\default\attachment\diff-header.html.tmpl"        $output .=  $stash->get('id');            } };            if ($@) {                $_tt_error = $context->catch($@, \$output);                die $_tt_error unless $_tt_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 $_tt_error;                        eval { BLOCK: {        #line 208 "template\en\default\attachment\diff-header.html.tmpl"        $output .=  $context->process('viewurl');        $output .=  "&amp;action=edit";            } };            if ($@) {                $_tt_error = $context->catch($@, \$output);                die $_tt_error unless $_tt_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 $_tt_error;                        eval { BLOCK: {        #line 209 "template\en\default\attachment\diff-header.html.tmpl"        $output .=  $context->process('viewurl');        $output .=  "&amp;action=diff";            } };            if ($@) {                $_tt_error = $context->catch($@, \$output);                die $_tt_error unless $_tt_error->type eq 'return';            }                    return $output;        },    },});

⌨️ 快捷键说明

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