{{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}}
{{range $j, $section := .Sections}} {{range $k, $line := .Lines}} {{if eq .Type 4}} {{else}} {{end}} {{end}} {{end}}
{{$line.Content}}
{{$line.Content}}
{{if $line.LeftIdx}}{{$line.LeftIdx}}{{end}}
{{if $line.LeftIdx}}{{$line.Content}}{{end}}
{{if $line.RightIdx}}{{$line.RightIdx}}{{end}}
{{if $line.RightIdx}}{{$line.Content}}{{end}}
{{end}} {{end}}

{{end}}