From 934734a85a1e4cb68d8c1aa68c518b511c7be190 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Mon, 20 Feb 2017 16:16:32 -0500 Subject: diff: able to highlight line with hashtag URL --- templates/repo/diff/section_unified.tmpl | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'templates/repo/diff') diff --git a/templates/repo/diff/section_unified.tmpl b/templates/repo/diff/section_unified.tmpl index ee66b6dc..f5ea81f1 100644 --- a/templates/repo/diff/section_unified.tmpl +++ b/templates/repo/diff/section_unified.tmpl @@ -8,14 +8,18 @@ {{/* {{if gt $j 0}}{{end}} */}} {{else}} - - {{if $line.LeftIdx}}{{$line.LeftIdx}}{{end}} + + {{if $line.LeftIdx}} + {{$line.LeftIdx}} + {{end}} - - {{if $line.RightIdx}}{{$line.RightIdx}}{{end}} + + {{if $line.RightIdx}} + {{$line.RightIdx}} + {{end}} {{end}} - +
{{$section.GetComputedInlineDiffFor $line}}
-- cgit v1.2.3