📄 diff-file.html.tmpl
字号:
#line 85 "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('line'); &$_tt_filter($output); }; $output .= "</pre></td><td><pre>"; #line 85 "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('line'); &$_tt_filter($output); }; $output .= "</pre></td></tr>";; ($_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; }; } #line 131 "template\en\default\attachment\diff-file.html.tmpl" if ($stash->get(['group', 0, 'plus', 0, 'size', 0])) { #line 115 "template\en\default\attachment\diff-file.html.tmpl" if ($stash->get(['group', 0, 'minus', 0, 'size', 0])) { #line 90 "template\en\default\attachment\diff-file.html.tmpl" $stash->set('i', 0); #line 101 "template\en\default\attachment\diff-file.html.tmpl" # WHILE do { my $_tt_failsafe = 1000000; LOOP: while (--$_tt_failsafe && (($stash->get('i') < $stash->get(['group', 0, 'plus', 0, 'size', 0]) || $stash->get('i') < $stash->get(['group', 0, 'minus', 0, 'size', 0])))) { #line 92 "template\en\default\attachment\diff-file.html.tmpl" $stash->set('currentloop', 0); #line 100 "template\en\default\attachment\diff-file.html.tmpl" # WHILE do { my $_tt_failsafe = 1000000; LOOP: while (--$_tt_failsafe && ($stash->get('currentloop') < 500 && ($stash->get('i') < $stash->get(['group', 0, 'plus', 0, 'size', 0]) || $stash->get('i') < $stash->get(['group', 0, 'minus', 0, 'size', 0])))) { $output .= "\n <tr class=\"changed\">\n <td><pre>"; #line 95 "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(['group', 0, 'minus', 0, $stash->get('i'), 0]); &$_tt_filter($output); }; $output .= "</pre></td>\n <td><pre>"; #line 96 "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(['group', 0, 'plus', 0, $stash->get('i'), 0]); &$_tt_filter($output); }; $output .= "</pre></td>\n </tr>"; #line 98 "template\en\default\attachment\diff-file.html.tmpl" $stash->set('currentloop', $stash->get('currentloop') + 1); #line 99 "template\en\default\attachment\diff-file.html.tmpl" $stash->set('i', $stash->get('i') + 1); } die "WHILE loop terminated (> 1000000 iterations)\n" unless $_tt_failsafe; }; } die "WHILE loop terminated (> 1000000 iterations)\n" unless $_tt_failsafe; }; } else { #line 114 "template\en\default\attachment\diff-file.html.tmpl" # FOREACH do { my ($_tt_value, $_tt_error, $_tt_oldloop); my $_tt_list = $stash->get(['group', 0, 'plus', 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; #line 113 "template\en\default\attachment\diff-file.html.tmpl" if ($stash->get(['file', 0, 'is_add', 0])) { $output .= "\n <tr>\n <td class=\"added\" colspan=\"2\"><pre>"; #line 106 "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('line'); &$_tt_filter($output); }; $output .= "</pre></td>\n </tr>"; } else { $output .= "\n <tr>\n <td></td>\n <td class=\"added\"><pre>"; #line 111 "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('line'); &$_tt_filter($output); }; $output .= "</pre></td>\n </tr>"; } ; ($_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; }; } } else { #line 130 "template\en\default\attachment\diff-file.html.tmpl" if ($stash->get(['group', 0, 'minus', 0, 'size', 0])) { #line 129 "template\en\default\attachment\diff-file.html.tmpl" # FOREACH do { my ($_tt_value, $_tt_error, $_tt_oldloop); my $_tt_list = $stash->get(['group', 0, 'minus', 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; #line 128 "template\en\default\attachment\diff-file.html.tmpl" if ($stash->get(['file', 0, 'is_remove', 0])) { $output .= "\n <tr>\n <td class=\"removed\" colspan=\"2\"><pre>"; #line 121 "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('line'); &$_tt_filter($output); }; $output .= "</pre></td>\n </tr>"; } else { $output .= "\n <tr>\n <td class=\"removed\"><pre>"; #line 125 "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('line'); &$_tt_filter($output); }; $output .= "</pre></td>\n <td></td>\n </tr>"; } ; ($_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; }; } } ; ($_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; }; ; ($_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\n</table>\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 + -