{{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}}
{{if gt $j 0}}{{end}} {{if $line.LeftIdx}}{{$line.LeftIdx}}{{end}} {{if $line.RightIdx}}{{$line.RightIdx}}{{end}}
{{$line.Content}}
{{end}} {{end}}

{{end}}