% my $rev = stash('rev'); my $from_rev = stash('from_rev'); my $git = app->git; my $diff_tree = stash('diff_tree'); my $blob_diff = stash('blob_diff'); my $from_mode_str = $diff_tree->{from_mode_str}; my $to_mode_str = $diff_tree->{to_mode_str}; my $lines = $blob_diff->{lines} || []; my $file = $blob_diff->{file}; $file = '' unless defined $file; my $from_file = $blob_diff->{from_file}; $from_file = $file unless defined $from_file; my $status = $diff_tree->{status} || ''; my $binary_rev_shown; my $binary_from_rev_shown; my $binary_not_shown; if ($blob_diff->{binary}) { if ($status eq 'A') { if ($git->blob_is_image($user, $project, $rev, $file)) { $binary_rev_shown = 1; } else { $binary_not_shown = 1; } } elsif ($status eq 'D') { if ($git->blob_is_image($user, $project, $from_rev, $file)) { $binary_from_rev_shown = 1; } else { $binary_not_shown = 1; } } else { if ($git->blob_is_image($user, $project, $from_rev, $file) && $git->blob_is_image($user, $project, $from_rev, $file)) { $binary_from_rev_shown = 1; $binary_rev_shown = 1; } else { $binary_not_shown = 1; } } } %>
<%= $line->{before_line_num} %> | <%= $line->{after_line_num} %> |
<%= $value %> |