diff --git a/templates/repo/diff/box.tmpl b/templates/repo/diff/box.tmpl
index a91a1bb91cc..36fb7e01f92 100644
--- a/templates/repo/diff/box.tmpl
+++ b/templates/repo/diff/box.tmpl
@@ -114,48 +114,18 @@
{{end}}
- {{if index $.CodeComments $file.Name (mul $line.LeftIdx -1)}}
-
- {{end}}
+ {{if index $.CodeComments $file.Name (mul $line.LeftIdx -1)}}
+
+ {{end}}
{{if $line.RightIdx}}{{$section.GetComputedInlineDiffFor $line}}{{end}}
|
diff --git a/templates/repo/diff/comment_form.tmpl b/templates/repo/diff/comment_form.tmpl
new file mode 100644
index 00000000000..ea604bcc451
--- /dev/null
+++ b/templates/repo/diff/comment_form.tmpl
@@ -0,0 +1,32 @@
+
diff --git a/templates/repo/diff/new_comment.tmpl b/templates/repo/diff/new_comment.tmpl
index f586c1567ee..12779c0e6f3 100644
--- a/templates/repo/diff/new_comment.tmpl
+++ b/templates/repo/diff/new_comment.tmpl
@@ -1,34 +1,3 @@