<% my $rev = stash('rev'); my $from_rev = stash('from_rev'); %> %= stylesheet begin .file-add { color:#32CD32; border:2px #32CD32 solid; margin-left:3px; font-weight:bold; line-height:0; display:table-cell; text-align:center; vertical-align:middle; width:9px; height:9px; font-size:13px; } .file-del { color:red; border:2px red solid; margin-left:3px; font-weight:bold; line-height:0; display:table-cell; text-align:center; vertical-align:middle; width:9px; height:9px; font-size:15px; } .file-modified { color:#DAA520; border:2px #DAA520 solid; margin-left:3px; font-weight:bold; line-height:0; display:table-cell; text-align:center; vertical-align:middle; width:9px; height:9px; font-size:11px; } .file-renamed { color:#677a85; border:2px #677a85 solid; margin-left:3px; font-weight:bold; line-height:0; display:table-cell; text-align:center; vertical-align:middle; width:9px; height:9px; font-size:7px; } % end % my $toggle = 0; % my $num = 0; % for my $diff_tree (@$diff_trees) { % my $status = $diff_tree->{status}; % my $file = $diff_tree->{to_file}; % my $file_type = $diff_tree->{to_file_type}; % my $mode = $diff_tree->{to_mode}; % my $mode_str = $diff_tree->{to_mode_str}; % my $mode_oct = $diff_tree->{to_mode_oct}; % my $from_file = $diff_tree->{from_file}; % my $from_mode_str = $diff_tree->{from_mode_str}; % $num++; % }
% if ($status eq 'A') {
+
% } elsif ($status eq 'D') {
-
% } elsif ($status eq 'M' || $status eq 'T') {
% } elsif ($status eq 'R') {
% } elsif ($status eq 'C') {
% }
% if ($status eq 'A' || $status eq 'M' || $status eq 'D') { "><%= $file %> % } elsif ($status eq 'T') { % } elsif ($status eq 'R' || $status eq 'C') { "><%= $diff_tree->{from_file} %> → <%= $file %> % } % if ($status ne 'A' && $status ne 'D' && $from_mode_str ne $mode_str) { <%= "100$from_mode_str → 100$mode_str" %> % } %= include '/include/diff_status_bar', diff_tree => $diff_tree, fragment => "diff-$num";