From 5deb726f3fc5335b7391a28f6b21328b1335dd9e Mon Sep 17 00:00:00 2001 From: Andrey Nering Date: Wed, 27 Jan 2016 18:54:08 -0200 Subject: Refactoring of inline diff computing to prevent empty diff box. Fix #2489 --- templates/repo/diff_box.tmpl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'templates/repo') diff --git a/templates/repo/diff_box.tmpl b/templates/repo/diff_box.tmpl index da512ebf0b..4ea531c3c5 100644 --- a/templates/repo/diff_box.tmpl +++ b/templates/repo/diff_box.tmpl @@ -76,13 +76,13 @@ {{if $line.LeftIdx}}{{$line.LeftIdx}}{{end}} -
{{if $line.LeftIdx}}{{$line.ParsedContent}}{{end}}
+
{{if $line.LeftIdx}}{{$section.GetComputedInlineDiffFor $line}}{{end}}
{{if $line.RightIdx}}{{$line.RightIdx}}{{end}} -
{{if $line.RightIdx}}{{$line.ParsedContent}}{{end}}
+
{{if $line.RightIdx}}{{$section.GetComputedInlineDiffFor $line}}{{end}}
{{end}} @@ -104,7 +104,7 @@ {{end}} -
{{$line.ParsedContent}}
+
{{$section.GetComputedInlineDiffFor $line}}
{{end}} -- cgit v1.2.3