From a4ab42f82ce3356aa2c3bcb6f73e74fa739cd57a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lauris=20Buk=C5=A1is-Haberkorns?= Date: Sun, 7 Oct 2018 17:31:11 +0300 Subject: [PATCH] Fix adding review comment in split view --- templates/repo/diff/box.tmpl | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/templates/repo/diff/box.tmpl b/templates/repo/diff/box.tmpl index 8be31ce8c31f6..b5bc3ee07377c 100644 --- a/templates/repo/diff/box.tmpl +++ b/templates/repo/diff/box.tmpl @@ -122,10 +122,9 @@ {{if $line.LeftIdx}}{{$line.LeftIdx}}{{end}} - - {{if and $.root.SignedUserID $line.CanComment $.root.PageIsPullFiles}} + {{if and $.SignedUserID $line.CanComment $.PageIsPullFiles (not (eq .GetType 2))}} + {{end}}
{{if $line.LeftIdx}}{{$section.GetComputedInlineDiffFor $line}}{{end}}
@@ -135,7 +134,7 @@ - {{if and $.root.SignedUserID $line.CanComment}} + {{if and $.SignedUserID $line.CanComment $.PageIsPullFiles (not (eq .GetType 3))}} + {{end}}
{{if $line.RightIdx}}{{$section.GetComputedInlineDiffFor $line}}{{end}}