% 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
% 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"; |