2020-10-01 09:25:57 +08:00
|
|
|
{{- range .Attachments -}}
|
2020-04-21 12:15:41 +08: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-12 12:05:21 +08:00
|
|
|
<span class="ui image">{{svg "octicon-file" 16}}</span>
|
2020-04-21 12:15:41 +08:00
|
|
|
{{else}}
|
|
|
|
<span class="ui image">{{svg "octicon-desktop-download" 16}}</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>
|
2020-10-01 09:25:57 +08:00
|
|
|
{{end -}}
|