diff --git a/templates/repo/diff/box.tmpl b/templates/repo/diff/box.tmpl
index 2dcad2ba9d..4408d52575 100644
--- a/templates/repo/diff/box.tmpl
+++ b/templates/repo/diff/box.tmpl
@@ -49,9 +49,7 @@
{{svg "octicon-chevron-down" 18}}
- {{if not $file.IsRenamed}}
- {{template "repo/diff/stats" dict "file" . "root" $}}
- {{end}}
+ {{template "repo/diff/stats" dict "file" . "root" $}}
- {{if ne $file.Type 4}}
-
- {{if $file.IsBin}}
+
+ {{if $file.IsBin}}
{{$.i18n.Tr "repo.diff.bin_not_shown"}}
- {{else}}
+ {{else}}
{{if $.IsSplitStyle}}
{{template "repo/diff/section_split" dict "file" . "root" $}}
@@ -125,9 +122,9 @@
{{template "repo/diff/section_unified" dict "file" . "root" $}}
{{end}}
- {{end}}
-
- {{if or $isImage $isCsv}}
+ {{end}}
+
+ {{if or $isImage $isCsv}}
{{if $isImage}}
@@ -137,7 +134,6 @@
{{end}}
- {{end}}
{{end}}