diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2020-05-02 22:03:47 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-02 15:03:47 +0100 |
commit | 71e4c75a618b2d4e9c4f9648a3d632c30bf68b5f (patch) | |
tree | 77a91e3559c4d29e70672caefcd4cc77461644e0 /templates/repo | |
parent | 28f8308d47af30e3ac3796034d7a3f6d5f375a3e (diff) | |
download | gitea-71e4c75a618b2d4e9c4f9648a3d632c30bf68b5f.tar.gz gitea-71e4c75a618b2d4e9c4f9648a3d632c30bf68b5f.zip |
Fix bug about comment attachment (#11272)
Diffstat (limited to 'templates/repo')
-rw-r--r-- | templates/repo/issue/view_content/comments.tmpl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/repo/issue/view_content/comments.tmpl b/templates/repo/issue/view_content/comments.tmpl index 99884a6796..e3c7df6745 100644 --- a/templates/repo/issue/view_content/comments.tmpl +++ b/templates/repo/issue/view_content/comments.tmpl @@ -52,10 +52,10 @@ </div> <div id="comment-{{.ID}}" class="raw-content hide">{{.Content}}</div> <div class="edit-content-zone hide" data-write="issuecomment-{{.ID}}-write" data-preview="issuecomment-{{.ID}}-preview" data-update-url="{{$.RepoLink}}/comments/{{.ID}}" data-context="{{$.RepoLink}}" data-attachment-url="{{$.RepoLink}}/comments/{{.ID}}/attachments"></div> - {{if .Issue.Attachments}} + {{if .Attachments}} <div class="ui clearing divider"></div> <div class="ui middle aligned padded grid"> - {{template "repo/issue/view_content/attachments" Dict "ctx" $ "Attachments" .Issue.Attachments}} + {{template "repo/issue/view_content/attachments" Dict "ctx" $ "Attachments" .Attachments}} </div> {{end}} </div> |