diff options
author | zeripath <art27@cantab.net> | 2020-10-11 00:49:59 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-11 00:49:59 +0100 |
commit | 7eb846013299465e4cd73f76f13a00984183146e (patch) | |
tree | 0263f6af28d7b3247545fff3632ba94c9119a58e /templates/repo/issue/view_content/comments.tmpl | |
parent | 6f2784911fe739d3b83787b7984c1b8a2fb31690 (diff) | |
download | gitea-7eb846013299465e4cd73f76f13a00984183146e.tar.gz gitea-7eb846013299465e4cd73f76f13a00984183146e.zip |
Fix attachments list in edit comment (#13036)
#11141 broke the appearance of dropzone attachments when editting
comments causing poorly updating lists.
This PR fixes this.
Fix #12583
Signed-off-by: Andrew Thornton art27@cantab.net
Diffstat (limited to 'templates/repo/issue/view_content/comments.tmpl')
-rw-r--r-- | templates/repo/issue/view_content/comments.tmpl | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/templates/repo/issue/view_content/comments.tmpl b/templates/repo/issue/view_content/comments.tmpl index a730bd5e8b..3b70a10715 100644 --- a/templates/repo/issue/view_content/comments.tmpl +++ b/templates/repo/issue/view_content/comments.tmpl @@ -57,9 +57,11 @@ <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 .Attachments}} - <div class="ui clearing divider"></div> - <div class="ui middle aligned padded grid"> - {{template "repo/issue/view_content/attachments" Dict "ctx" $ "Attachments" .Attachments}} + <div class="dropzone-attachments"> + <div class="ui clearing divider"></div> + <div class="ui middle aligned padded grid"> + {{template "repo/issue/view_content/attachments" Dict "ctx" $ "Attachments" .Attachments}} + </div> </div> {{end}} </div> |