diff --git a/templates/repo/diff/box.tmpl b/templates/repo/diff/box.tmpl index 32e21202f..c9be67366 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" $}}
{{$file.Name}}
@@ -85,7 +83,7 @@
{{if $file.IsBin}} {{$.i18n.Tr "repo.diff.bin"}} - {{else if not $file.IsRenamed}} + {{else}} {{template "repo/diff/stats" dict "file" . "root" $}} {{end}}
@@ -105,23 +103,21 @@
- {{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}}