📄 diff-file.html.tmpl
字号:
#------------------------------------------------------------------------# Compiled template generated by the Template Toolkit version 2.13#------------------------------------------------------------------------Template::Document->new({ METADATA => { 'modtime' => '1094768708', '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 $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 $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['file', 0, 'filename', 0]); &$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 30 "template\en\default\attachment\diff-file.html.tmpl" $output .= $stash->get('lxr_prefix'); $output .= "\">"; #line 30 "template\en\default\attachment\diff-file.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['file', 0, 'filename', 0]); &$filter($output); }; $output .= "</a>"; } else { #line 32 "template\en\default\attachment\diff-file.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['file', 0, 'filename', 0]); &$filter($output); }; } #line 41 "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 33 "template\en\default\attachment\diff-file.html.tmpl" $output .= $stash->get(['file', 0, 'minus_lines', 0]); $output .= " / +"; #line 33 "template\en\default\attachment\diff-file.html.tmpl" $output .= $stash->get(['file', 0, 'plus_lines', 0]); $output .= " lines)"; } else { $output .= "\n (+"; #line 36 "template\en\default\attachment\diff-file.html.tmpl" $output .= $stash->get(['file', 0, 'plus_lines', 0]); $output .= " lines)"; } } else { #line 41 "template\en\default\attachment\diff-file.html.tmpl" if ($stash->get(['file', 0, 'minus_lines', 0])) { $output .= "\n (-"; #line 39 "template\en\default\attachment\diff-file.html.tmpl" $output .= $stash->get(['file', 0, 'minus_lines', 0]); $output .= " lines)"; } } $output .= "\n</td></tr></thead><tbody class=\""; #line 42 "template\en\default\attachment\diff-file.html.tmpl" $output .= $stash->get('collapsed') ? 'file_collapse' : 'file'; $output .= "\">\n<script type=\"application/x-javascript\" language=\"JavaScript\">\nincremental_restore()\n</script>\n"; #line 48 "template\en\default\attachment\diff-file.html.tmpl" $stash->set('section_num', 0); #line 103 "template\en\default\attachment\diff-file.html.tmpl" # FOREACH do { my ($value, $error, $oldloop); my $list = $stash->get('sections'); 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->{'section'} = $value; #line 48 "template\en\default\attachment\diff-file.html.tmpl" $stash->set('section_num', $stash->get('section_num') + 1); $output .= "\n <tr><th class=\"section_head\" colspan=\"2\">"; #line 68 "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 60 "template\en\default\attachment\diff-file.html.tmpl" if ($stash->get('bonsai_prefix')) { $output .= "\n <a href=\""; #line 55 "template\en\default\attachment\diff-file.html.tmpl" $output .= $stash->get('bonsai_prefix'); $output .= "\">Removed</a>"; } else { $output .= "\n Removed"; } } else { #line 63 "template\en\default\attachment\diff-file.html.tmpl" if ($stash->get('bonsai_prefix')) { $output .= "\n <a href=\""; #line 61 "template\en\default\attachment\diff-file.html.tmpl" $output .= $stash->get('bonsai_prefix'); $output .= "#"; #line 61 "template\en\default\attachment\diff-file.html.tmpl" $output .= $stash->get(['section', 0, 'old_start', 0]); $output .= "\">"; } #line 65 "template\en\default\attachment\diff-file.html.tmpl" if ($stash->get(['section', 0, 'old_lines', 0]) > 1) { $output .= "\n Lines "; #line 64 "template\en\default\attachment\diff-file.html.tmpl" $output .= $stash->get(['section', 0, 'old_start', 0]); $output .= "-"; #line 64 "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 "; #line 65 "template\en\default\attachment\diff-file.html.tmpl" $output .= $stash->get(['section', 0, 'old_start', 0]); } #line 68 "template\en\default\attachment\diff-file.html.tmpl" if ($stash->get('bonsai_prefix')) { $output .= "\n </a>"; } } $output .= " \n (<a name=\""; #line 69 "template\en\default\attachment\diff-file.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['file', 0, 'filename', 0]); &$filter($output); }; $output .= "_sec"; #line 69 "template\en\default\attachment\diff-file.html.tmpl" $output .= $stash->get('section_num'); $output .= "\" href=\"#"; #line 69 "template\en\default\attachment\diff-file.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['file', 0, 'filename', 0]); &$filter($output); }; $output .= "_sec"; #line 69 "template\en\default\attachment\diff-file.html.tmpl" $output .= $stash->get('section_num'); $output .= "\">Link Here</a>)\n </th></tr>"; #line 103 "template\en\default\attachment\diff-file.html.tmpl" # FOREACH do { my ($value, $error, $oldloop); my $list = $stash->get(['section', 0, 'groups', 0]); 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->{'group'} = $value; #line 75 "template\en\default\attachment\diff-file.html.tmpl" if ($stash->get(['group', 0, 'context', 0])) { #line 75 "template\en\default\attachment\diff-file.html.tmpl" # FOREACH do { my ($value, $error, $oldloop); my $list = $stash->get(['group', 0, 'context', 0]); 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->{'line'} = $value; $output .= "\n <tr><td><pre>"; #line 73 "template\en\default\attachment\diff-file.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('line');
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -