diff options
author | Giteabot <teabot@gitea.io> | 2023-10-04 20:56:02 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-04 12:56:02 +0000 |
commit | 51001d9ffed27b871acb1b1c27f4090b3dbb026d (patch) | |
tree | 1748d80532c58ebd21ea8fb525adf7a2a0b59095 | |
parent | 1ff6b7783ceda63fb8b8efa33f87f5a741b68706 (diff) | |
download | gitea-51001d9ffed27b871acb1b1c27f4090b3dbb026d.tar.gz gitea-51001d9ffed27b871acb1b1c27f4090b3dbb026d.zip |
Fix pr template (#27436) (#27440)
Backport #27436 by @lunny
Fix #27431
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
-rw-r--r-- | templates/repo/issue/view_content/comments.tmpl | 2 |
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}}"> |