{{$root := ctx.RootData}} {{$file := $.file}} {{$hasLeft := Iif $file.LeftBlobMimeType true false}} {{$hasRight := Iif $file.RightBlobMimeType true false}} {{if or $hasLeft $hasRight}}
{{if $hasLeft}}

{{ctx.Locale.Tr "repo.diff.file_before"}}

{{ctx.Locale.Tr "repo.diff.file_image_width"}}:  |  {{ctx.Locale.Tr "repo.diff.file_image_height"}}:  |  {{ctx.Locale.Tr "repo.diff.file_byte_size"}}: {{FileSize .file.LeftBlobSize}}

{{end}} {{if $hasRight}}

{{ctx.Locale.Tr "repo.diff.file_after"}}

{{ctx.Locale.Tr "repo.diff.file_image_width"}}:  |  {{ctx.Locale.Tr "repo.diff.file_image_height"}}:  |  {{ctx.Locale.Tr "repo.diff.file_byte_size"}}: {{FileSize .file.RightBlobSize}}

{{end}}
{{if and $hasLeft $hasRight}}
{{end}}
{{end}}