diff options
author | Matthias Schoettle <git@mattsch.com> | 2020-04-21 00:15:41 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-21 01:15:41 -0300 |
commit | 33176e8d27eeb47c6d63fbd24bf11ac9e5c60acd (patch) | |
tree | 26482a350e140221ce80cf5eff924c3b7945f21a /templates/repo/issue/view_content.tmpl | |
parent | 50475fff06e08e449470c419c78f3277177b67ce (diff) | |
download | gitea-33176e8d27eeb47c6d63fbd24bf11ac9e5c60acd.tar.gz gitea-33176e8d27eeb47c6d63fbd24bf11ac9e5c60acd.zip |
Improve representation of attachments in issues (#11141)
* Improves representation of attachments in issues to a list showing the file name and file size (see #6500 and #6089).
Signed-off-by: Matthias Schoettle <git@mattsch.com>
* Fixes indentation.
Co-authored-by: zeripath <art27@cantab.net>
Diffstat (limited to 'templates/repo/issue/view_content.tmpl')
-rw-r--r-- | templates/repo/issue/view_content.tmpl | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/templates/repo/issue/view_content.tmpl b/templates/repo/issue/view_content.tmpl index 5f0559c068..c44da22720 100644 --- a/templates/repo/issue/view_content.tmpl +++ b/templates/repo/issue/view_content.tmpl @@ -55,6 +55,12 @@ </div> <div id="comment-{{.Issue.ID}}" class="raw-content hide">{{.Issue.Content}}</div> <div class="edit-content-zone hide" data-write="issue-{{.Issue.ID}}-write" data-preview="issue-{{.Issue.ID}}-preview" data-update-url="{{$.RepoLink}}/issues/{{.Issue.Index}}/content" data-context="{{.RepoLink}}" data-attachment-url="{{$.RepoLink}}/issues/{{.Issue.Index}}/attachments" data-view-attachment-url="{{$.RepoLink}}/issues/{{.Issue.Index}}/view-attachments"></div> + {{if .Issue.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}} + </div> + {{end}} </div> {{$reactions := .Issue.Reactions.GroupByType}} {{if $reactions}} @@ -62,13 +68,6 @@ {{template "repo/issue/view_content/reactions" Dict "ctx" $ "ActionURL" (Printf "%s/issues/%d/reactions" $.RepoLink .Issue.Index) "Reactions" $reactions}} </div> {{end}} - {{if .Issue.Attachments}} - <div class="ui bottom attached segment"> - <div class="ui small images"> - {{template "repo/issue/view_content/attachments" Dict "ctx" $ "Attachments" .Issue.Attachments}} - </div> - </div> - {{end}} </div> </div> |