diff --git a/templates/repo/diff/box.tmpl b/templates/repo/diff/box.tmpl
index 32e21202ff7..c9be6736627 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 $isImage}}
- {{template "repo/diff/image_diff" dict "file" . "root" $}}
+
+
+
+ {{if $isImage}}
+ {{template "repo/diff/image_diff" dict "file" . "root" $}}
+ {{else}}
+ {{if $.IsSplitStyle}}
+ {{template "repo/diff/section_split" dict "file" . "root" $}}
{{else}}
- {{if $.IsSplitStyle}}
- {{template "repo/diff/section_split" dict "file" . "root" $}}
- {{else}}
- {{template "repo/diff/section_unified" dict "file" . "root" $}}
- {{end}}
+ {{template "repo/diff/section_unified" dict "file" . "root" $}}
{{end}}
-
-
-
- {{end}}
+ {{end}}
+
+
+
{{end}}