diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2024-03-01 18:56:29 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-01 10:56:29 +0000 |
commit | b8a598e6a43fa65db23b88d3b3b281b5f2f7c2e0 (patch) | |
tree | 563ed82d36a3c751bd730b6c15a03214422c6525 /templates/repo/diff | |
parent | fb42972c057364a1dc99dfb528554e7a94415be7 (diff) | |
download | gitea-b8a598e6a43fa65db23b88d3b3b281b5f2f7c2e0.tar.gz gitea-b8a598e6a43fa65db23b88d3b3b281b5f2f7c2e0.zip |
Refactor the "attachments" sub-template data key to RenderedContent (#29517)
The value passed into "attachments" sub-template is from
"RedneredContent", so use the same name for consistent. And it makes
readers easy to know its data type.
Diffstat (limited to 'templates/repo/diff')
-rw-r--r-- | templates/repo/diff/comments.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/diff/comments.tmpl b/templates/repo/diff/comments.tmpl index e00487a22c..0bb577deba 100644 --- a/templates/repo/diff/comments.tmpl +++ b/templates/repo/diff/comments.tmpl @@ -63,7 +63,7 @@ <div id="issuecomment-{{.ID}}-raw" class="raw-content gt-hidden">{{.Content}}</div> <div class="edit-content-zone gt-hidden" data-update-url="{{$.root.RepoLink}}/comments/{{.ID}}" data-context="{{$.root.RepoLink}}" data-attachment-url="{{$.root.RepoLink}}/comments/{{.ID}}/attachments"></div> {{if .Attachments}} - {{template "repo/issue/view_content/attachments" dict "ctxData" $ "Attachments" .Attachments "Content" .RenderedContent}} + {{template "repo/issue/view_content/attachments" dict "ctxData" $ "Attachments" .Attachments "RenderedContent" .RenderedContent}} {{end}} </div> {{$reactions := .Reactions.GroupByType}} |