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

📄 diff-file.html.tmpl

📁 buzilla软件
💻 TMPL
📖 第 1 页 / 共 2 页
字号:
#------------------------------------------------------------------------# Compiled template generated by the Template Toolkit version 2.20#------------------------------------------------------------------------Template::Document->new({    METADATA => {        'modtime' => '1109345244',        'name' => 'attachment/diff-file.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<table class=\"file_table\"><thead><tr><td class=\"file_head\" colspan=\"2\"><a href=\"#\" onclick=\"return twisty_click(this)\">";    #line 27 "template\en\default\attachment\diff-file.html.tmpl"    $output .=  $stash->get('collapsed') ? '(+)' : '(-)';    $output .=  "</a><input type=\"checkbox\" name=\"";    #line 27 "template\en\default\attachment\diff-file.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get(['file', 0, 'filename', 0]);                &$_tt_filter($output);    };        $output .=  "\"";    #line 27 "template\en\default\attachment\diff-file.html.tmpl"    $output .=  $stash->get('collapsed') ? '' : ' checked';    $output .=  " style=\"display: none\"> ";    #line 32 "template\en\default\attachment\diff-file.html.tmpl"    if ($stash->get('lxr_prefix') && ! $stash->get(['file', 0, 'is_add', 0])) {    $output .=  "\n    <a href=\"";    #line 29 "template\en\default\attachment\diff-file.html.tmpl"    $output .=  $stash->get('lxr_prefix');    $output .=  "\">";    #line 29 "template\en\default\attachment\diff-file.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get(['file', 0, 'filename', 0]);                &$_tt_filter($output);    };        $output .=  "</a>";    }    else {    #line 31 "template\en\default\attachment\diff-file.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get(['file', 0, 'filename', 0]);                &$_tt_filter($output);    };        }        #line 43 "template\en\default\attachment\diff-file.html.tmpl"    if ($stash->get(['file', 0, 'plus_lines', 0])) {    #line 38 "template\en\default\attachment\diff-file.html.tmpl"    if ($stash->get(['file', 0, 'minus_lines', 0])) {    $output .=  "\n      (-";    #line 35 "template\en\default\attachment\diff-file.html.tmpl"    $output .=  $stash->get(['file', 0, 'minus_lines', 0]);    $output .=  "&nbsp;/&nbsp;+";    #line 35 "template\en\default\attachment\diff-file.html.tmpl"    $output .=  $stash->get(['file', 0, 'plus_lines', 0]);    $output .=  "&nbsp;lines)";    }    else {    $output .=  "\n      (+";    #line 37 "template\en\default\attachment\diff-file.html.tmpl"    $output .=  $stash->get(['file', 0, 'plus_lines', 0]);    $output .=  "&nbsp;lines)";    }        }    else {    #line 42 "template\en\default\attachment\diff-file.html.tmpl"    if ($stash->get(['file', 0, 'minus_lines', 0])) {    $output .=  "\n      (-";    #line 41 "template\en\default\attachment\diff-file.html.tmpl"    $output .=  $stash->get(['file', 0, 'minus_lines', 0]);    $output .=  "&nbsp;lines)";    }        }        $output .=  "\n</td></tr></thead><tbody class=\"";    #line 44 "template\en\default\attachment\diff-file.html.tmpl"    $output .=  $stash->get('collapsed') ? 'file_collapse' : 'file';    $output .=  "\">\n<script type=\"text/javascript\">\nincremental_restore()\n</script>\n";    #line 49 "template\en\default\attachment\diff-file.html.tmpl"    $stash->set('section_num', 0);        #line 133 "template\en\default\attachment\diff-file.html.tmpl"        # FOREACH     do {        my ($_tt_value, $_tt_error, $_tt_oldloop);        my $_tt_list = $stash->get('sections');                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->{'section'} = $_tt_value;    #line 51 "template\en\default\attachment\diff-file.html.tmpl"    $stash->set('section_num', $stash->get('section_num') + 1);        $output .=  "\n  <tr><th colspan=\"2\" class=\"section_head\">\n    <table cellpadding=\"0\" cellspacing=\"0\">\n    <tr><th width=\"95%\" align=\"left\">";    #line 77 "template\en\default\attachment\diff-file.html.tmpl"    if ($stash->get(['file', 0, 'is_add', 0])) {    $output .=  "\n    Added";    }    elsif ($stash->get(['file', 0, 'is_remove', 0])) {    #line 62 "template\en\default\attachment\diff-file.html.tmpl"    if ($stash->get('bonsai_prefix')) {    $output .=  "\n      <a href=\"";    #line 59 "template\en\default\attachment\diff-file.html.tmpl"    $output .=  $stash->get('bonsai_prefix');    $output .=  "\">Removed</a>";    }    else {    $output .=  "\n      Removed";    }        }    else {    #line 66 "template\en\default\attachment\diff-file.html.tmpl"    if ($stash->get('bonsai_prefix')) {    $output .=  "\n      <a href=\"";    #line 65 "template\en\default\attachment\diff-file.html.tmpl"    $output .=  $stash->get('bonsai_prefix');    $output .=  "#";    #line 65 "template\en\default\attachment\diff-file.html.tmpl"    $output .=  $stash->get(['section', 0, 'old_start', 0]);    $output .=  "\">";    }        #line 72 "template\en\default\attachment\diff-file.html.tmpl"    if ($stash->get(['section', 0, 'old_lines', 0]) > 1) {    $output .=  "\n      &nbsp;Lines&nbsp;";    #line 68 "template\en\default\attachment\diff-file.html.tmpl"    $output .=  $stash->get(['section', 0, 'old_start', 0]);    $output .=  "-";    #line 68 "template\en\default\attachment\diff-file.html.tmpl"    $output .=  $stash->get(['section', 0, 'old_start', 0]) + $stash->get(['section', 0, 'old_lines', 0]) - 1;    }    else {    $output .=  "\n      Line&nbsp;";    #line 71 "template\en\default\attachment\diff-file.html.tmpl"    $output .=  $stash->get(['section', 0, 'old_start', 0]);    }        #line 75 "template\en\default\attachment\diff-file.html.tmpl"    if ($stash->get('bonsai_prefix')) {    $output .=  "\n      </a>";    }        $output .=  "\n    &nbsp;&nbsp;";    #line 76 "template\en\default\attachment\diff-file.html.tmpl"    if ($stash->get(['section', 0, 'func_info', 0])) {        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get(['section', 0, 'func_info', 0]);                &$_tt_filter($output);    };        }        }        $output .=  " \n    </th><th>\n  <a name=\"";    #line 79 "template\en\default\attachment\diff-file.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get(['file', 0, 'filename', 0]);                &$_tt_filter($output);    };        $output .=  "_sec";    #line 79 "template\en\default\attachment\diff-file.html.tmpl"    $output .=  $stash->get('section_num');    $output .=  "\" href=\"#";    #line 79 "template\en\default\attachment\diff-file.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get(['file', 0, 'filename', 0]);                &$_tt_filter($output);    };        $output .=  "_sec";    #line 79 "template\en\default\attachment\diff-file.html.tmpl"    $output .=  $stash->get('section_num');    $output .=  "\">Link&nbsp;Here</a>&nbsp;\n    </th></tr></table>\n  </th></tr>";    #line 132 "template\en\default\attachment\diff-file.html.tmpl"        # FOREACH     do {        my ($_tt_value, $_tt_error, $_tt_oldloop);        my $_tt_list = $stash->get(['section', 0, 'groups', 0]);                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->{'group'} = $_tt_value;    #line 87 "template\en\default\attachment\diff-file.html.tmpl"    if ($stash->get(['group', 0, 'context', 0])) {    #line 86 "template\en\default\attachment\diff-file.html.tmpl"        # FOREACH     do {        my ($_tt_value, $_tt_error, $_tt_oldloop);        my $_tt_list = $stash->get(['group', 0, 'context', 0]);                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->{'line'} = $_tt_value;    $output .=  "\n        <tr><td><pre>";

⌨️ 快捷键说明

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