2020-08-05 06:30:02 +09:00
|
|
|
{{- range .Attachments -}}
|
2020-04-21 13:15:41 +09:00
|
|
|
<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}}
|
2020-10-11 08:49:59 +09:00
|
|
|
<span class="ui image">{{svg "octicon-file"}}</span>
|
2020-04-21 13:15:41 +09:00
|
|
|
{{else}}
|
2020-09-12 05:19:00 +09:00
|
|
|
<span class="ui image">{{svg "octicon-desktop-download"}}</span>
|
2020-04-21 13:15:41 +09:00
|
|
|
{{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>
|
2020-08-05 06:30:02 +09:00
|
|
|
{{end -}}
|