diff --git a/templates/repo/diff/stats.tmpl b/templates/repo/diff/stats.tmpl
index d0dff1bd094d9..a136c78479aab 100644
--- a/templates/repo/diff/stats.tmpl
+++ b/templates/repo/diff/stats.tmpl
@@ -1,5 +1,10 @@
-{{Eval .file.Addition "+" .file.Deletion}}
-
- {{/* if the denominator is zero, then the float result is "width: NaNpx", as before, it just works */}}
-
-
+
+
+ {{if .file.Addition}}+{{.file.Addition}}{{end}}
+ {{if .file.Deletion}}-{{.file.Deletion}}{{end}}
+
+
+ {{/* if the denominator is zero, then the float result is "width: NaNpx", as before, it just works */}}
+
+
+