summaryrefslogtreecommitdiffstats
path: root/templates/repo/issue
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2023-10-04 20:28:25 +0800
committerGitHub <noreply@github.com>2023-10-04 12:28:25 +0000
commitdd221b9aec6a827da395eaca4f521674bc5be34a (patch)
tree6dc955285f8209367e91d12cbc936c95997d134a /templates/repo/issue
parent74763f50aed7a1d9453a8da29da7c7a1a5a4bd56 (diff)
downloadgitea-dd221b9aec6a827da395eaca4f521674bc5be34a.tar.gz
gitea-dd221b9aec6a827da395eaca4f521674bc5be34a.zip
Fix pr template (#27436)
Fix #27431
Diffstat (limited to 'templates/repo/issue')
-rw-r--r--templates/repo/issue/view_content/comments.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/issue/view_content/comments.tmpl b/templates/repo/issue/view_content/comments.tmpl
index 714701939f..d3fe424b84 100644
--- a/templates/repo/issue/view_content/comments.tmpl
+++ b/templates/repo/issue/view_content/comments.tmpl
@@ -496,7 +496,7 @@
{{end}}
</div>
</div>
- {{$diff := (CommentMustAsDiff (index $comms 0))}}
+ {{$diff := (CommentMustAsDiff ctx (index $comms 0))}}
{{if $diff}}
{{$file := (index $diff.Files 0)}}
<div id="code-preview-{{(index $comms 0).ID}}" class="ui table segment{{if $resolved}} gt-hidden{{end}}">