mirror of
https://codeberg.org/forgejo/forgejo
synced 2024-11-25 03:06:10 +01:00
7eb8460132
#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
16 lines
577 B
Handlebars
16 lines
577 B
Handlebars
{{- range .Attachments -}}
|
|
<div class="twelve wide column" style="padding: 6px;">
|
|
<a target="_blank" rel="noopener noreferrer" href="{{.DownloadURL}}" title='{{$.ctx.i18n.Tr "repo.issues.attachment.open_tab" .Name}}'>
|
|
{{if FilenameIsImage .Name}}
|
|
<span class="ui image">{{svg "octicon-file"}}</span>
|
|
{{else}}
|
|
<span class="ui image">{{svg "octicon-desktop-download"}}</span>
|
|
{{end}}
|
|
<span><strong>{{.Name}}</strong></span>
|
|
</a>
|
|
</div>
|
|
<div class="four wide column" style="padding: 0px;">
|
|
<span class="ui text grey right">{{.Size | FileSize}}</span>
|
|
</div>
|
|
{{end -}}
|