mirror of
https://github.com/go-gitea/gitea.git
synced 2024-12-04 14:46:57 -05:00
9 lines
459 B
Cheetah
9 lines
459 B
Cheetah
|
{{range .Attachments}}
|
||
|
<a target="_blank" rel="noopener noreferrer" href="{{AppSubUrl}}/attachments/{{.UUID}}">
|
||
|
{{if FilenameIsImage .Name}}
|
||
|
<img class="ui image" src="{{AppSubUrl}}/attachments/{{.UUID}}" title='{{$.ctx.i18n.Tr "repo.issues.attachment.open_tab" .Name}}'>
|
||
|
{{else}}
|
||
|
<span class="ui image octicon octicon-desktop-download" title='{{$.ctx.i18n.Tr "repo.issues.attachment.download" .Name}}'></span>
|
||
|
{{end}}
|
||
|
</a>
|
||
|
{{end}}
|