From c970c4ee41bc98515ed37a92dfc7dbe125e213e1 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Fri, 14 Jul 2017 16:50:49 -0400 Subject: css: not include line numbers in diff selection (#4584) Changed template file in order to make CSS work properly. --- templates/repo/diff/section_unified.tmpl | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) (limited to 'templates/repo') diff --git a/templates/repo/diff/section_unified.tmpl b/templates/repo/diff/section_unified.tmpl index 0832d39f..d85ea49d 100644 --- a/templates/repo/diff/section_unified.tmpl +++ b/templates/repo/diff/section_unified.tmpl @@ -4,20 +4,12 @@ {{range $k, $line := $section.Lines}} {{if eq .GetType 4}} - - {{/* {{if gt $j 0}}{{end}} */}} - + + {{/* {{if gt $j 0}}{{end}} */}} + {{else}} - - {{if $line.LeftIdx}} - {{$line.LeftIdx}} - {{end}} - - - {{if $line.RightIdx}} - {{$line.RightIdx}} - {{end}} - + + {{end}}
{{$section.ComputedInlineDiffFor $line}}
-- cgit v1.2.3