{{if .DiffNotAvailable}}

{{.i18n.Tr "repo.diff.data_not_available"}}

{{else}}
{{.i18n.Tr "repo.diff.stats_desc" .Diff.NumFiles .Diff.TotalAddition .Diff.TotalDeletion | Str2html}}
    {{range .Diff.Files}}
  1. {{if not .IsBin}} {{.Addition}} {{.Deletion}} {{else}} {{$.i18n.Tr "repo.diff.bin"}} {{end}}
      {{.Name}}
  2. {{end}}
{{range $i, $file := .Diff.Files}}

{{if $file.IsBin}} {{$.i18n.Tr "repo.diff.bin"}} {{else if not $file.IsRenamed}} + {{.Addition}} - {{.Deletion}} {{end}}
{{if $file.IsRenamed}}{{$file.OldName}} → {{end}}{{$file.Name}}

{{if not $file.IsRenamed}} {{$isImage := (call $.IsImageFile $file.Name)}} {{if and $isImage}}
{{else}}
{{if $.IsSplitStyle}} {{range $j, $section := .Sections}} {{range $k, $line := .Lines}} {{end}} {{end}} {{else}} {{range $j, $section := .Sections}} {{range $k, $line := .Lines}} {{if eq .Type 4}} {{else}} {{end}} {{end}} {{end}} {{end}}
{{if $line.LeftIdx}}{{$line.LeftIdx}}{{end}}
{{if $line.LeftIdx}}{{$line.ParsedContent}}{{end}}
{{if $line.RightIdx}}{{$line.RightIdx}}{{end}}
{{if $line.RightIdx}}{{$line.ParsedContent}}{{end}}
{{if gt $j 0}}{{end}} {{if $line.LeftIdx}}{{$line.LeftIdx}}{{end}} {{if $line.RightIdx}}{{$line.RightIdx}}{{end}}
{{$line.ParsedContent}}
{{end}} {{end}}

{{end}} {{if .IsSplitStyle}} {{end}} {{end}}