mirror of
https://github.com/go-gitea/gitea.git
synced 2024-12-01 14:25:11 +08:00
ffddf3f8a6
Now defaults to 16 on both frontend and backend. Co-authored-by: techknowlogick <techknowlogick@gitea.io>
16 lines
583 B
Cheetah
16 lines
583 B
Cheetah
{{- 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-media"}}</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 -}}
|