From 7f71fe9dae05d11c51ee5009580c14c47edf5043 Mon Sep 17 00:00:00 2001 From: Alexey Makhov Date: Tue, 3 Feb 2015 23:53:34 +0300 Subject: fix diff lines highlighting --- templates/repo/diff.tmpl | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'templates') diff --git a/templates/repo/diff.tmpl b/templates/repo/diff.tmpl index 80453516..8becb006 100644 --- a/templates/repo/diff.tmpl +++ b/templates/repo/diff.tmpl @@ -102,17 +102,17 @@ {{range .Sections}} - {{range .Lines}} - + {{range $i, $line := .Lines}} + {{end}} -- cgit v1.2.3
- {{if .LeftIdx}}{{.LeftIdx}}{{end}} + {{if $line.LeftIdx}}{{$line.LeftIdx}}{{end}} - {{if .RightIdx}}{{.RightIdx}}{{end}} + {{if $line.RightIdx}}{{$line.RightIdx}}{{end}} -
{{.Content}}
+
{{$line.Content}}