mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 18:28:37 +00:00
Comments will be shown at the right place now
Signed-off-by: Jonas Franz <info@jonasfranz.software>
This commit is contained in:
7
templates/repo/diff/comment_form_datahandler.tmpl
Normal file
7
templates/repo/diff/comment_form_datahandler.tmpl
Normal file
@@ -0,0 +1,7 @@
|
||||
{{if $.comment}}
|
||||
{{ template "repo/diff/comment_form" dict "root" $.root "Line" $.comment.UnsignedLine "File" $.comment.TreePath "Side" $.comment.DiffSide}}
|
||||
{{else if $.root}}
|
||||
{{ template "repo/diff/comment_form" $}}
|
||||
{{else}}
|
||||
{{ template "repo/diff/comment_form" dict "root" $}}
|
||||
{{end}}
|
Reference in New Issue
Block a user