diff --git a/templates/repo/diff/box.tmpl b/templates/repo/diff/box.tmpl
index 1ea51ffdb..a602a671a 100644
--- a/templates/repo/diff/box.tmpl
+++ b/templates/repo/diff/box.tmpl
@@ -8,9 +8,7 @@
@@ -106,7 +104,7 @@
- {{if and $.IsSigned (not (len $line.Comments))}}
+ {{if not (len $line.Comments)}}
{{end}}
{{if $line.LeftIdx}}{{$section.GetComputedInlineDiffFor $line}}{{end}}
@@ -116,7 +114,7 @@
|
- {{if and $.IsSigned (not (len $line.Comments))}}
+ {{if not (len $line.Comments)}}
{{end}}
{{if $line.RightIdx}}{{$section.GetComputedInlineDiffFor $line}}{{end}}
@@ -131,12 +129,7 @@
{{ template "repo/diff/comments" dict "root" $ "comments" $line.Comments}}
- {{if $.IsSigned}}
- {{template "repo/diff/comment_form_datahandler" dict "root" $ "comment" (index $line.Comments 0)}}
- {{end}}
- {{printf "%v" $}}
-
- {{printf "%v" $.IsSigned}}
+ {{template "repo/diff/comment_form_datahandler" dict "root" $ "comment" (index $line.Comments 0)}}
|
diff --git a/templates/repo/diff/section_unified.tmpl b/templates/repo/diff/section_unified.tmpl
index 23cb29670..8db154bd5 100644
--- a/templates/repo/diff/section_unified.tmpl
+++ b/templates/repo/diff/section_unified.tmpl
@@ -16,7 +16,7 @@
{{end}}
- {{if and $.IsSigned (not (len $line.Comments))}}
+ {{if not (len $line.Comments)}}
{{end}}
{{$section.GetComputedInlineDiffFor $line}}
@@ -31,9 +31,7 @@
{{ template "repo/diff/comments" dict "root" $.root "comments" $line.Comments}}
- {{if $.IsSigned}}
- {{template "repo/diff/comment_form_datahandler" dict "root" $.root "comment" (index $line.Comments 0)}}
- {{end}}
+ {{template "repo/diff/comment_form_datahandler" dict "root" $.root "comment" (index $line.Comments 0)}}
|