|
|
@ -41,7 +41,13 @@
|
|
|
|
<div class="ui bottom attached segment">
|
|
|
|
<div class="ui bottom attached segment">
|
|
|
|
<div class="ui small images">
|
|
|
|
<div class="ui small images">
|
|
|
|
{{range .Issue.Attachments}}
|
|
|
|
{{range .Issue.Attachments}}
|
|
|
|
<a target="_blank" href="{{AppSubUrl}}/attachments/{{.UUID}}"><img class="ui image" src="{{AppSubUrl}}/attachments/{{.UUID}}"></a>
|
|
|
|
<a target="_blank" href="{{AppSubUrl}}/attachments/{{.UUID}}">
|
|
|
|
|
|
|
|
{{if FilenameIsImage .Name}}
|
|
|
|
|
|
|
|
<img class="ui image" src="{{AppSubUrl}}/attachments/{{.UUID}}" title='{{$.i18n.Tr "repo.issues.attachment.open_tab" .Name}}'>
|
|
|
|
|
|
|
|
{{else}}
|
|
|
|
|
|
|
|
<span class="ui image octicon octicon-desktop-download" title='{{$.i18n.Tr "repo.issues.attachment.download" .Name}}'></span>
|
|
|
|
|
|
|
|
{{end}}
|
|
|
|
|
|
|
|
</a>
|
|
|
|
{{end}}
|
|
|
|
{{end}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
@ -96,7 +102,13 @@
|
|
|
|
<div class="ui bottom attached segment">
|
|
|
|
<div class="ui bottom attached segment">
|
|
|
|
<div class="ui small images">
|
|
|
|
<div class="ui small images">
|
|
|
|
{{range .Attachments}}
|
|
|
|
{{range .Attachments}}
|
|
|
|
<a target="_blank" href="{{AppSubUrl}}/attachments/{{.UUID}}"><img class="ui image" src="{{AppSubUrl}}/attachments/{{.UUID}}"></a>
|
|
|
|
<a target="_blank" href="{{AppSubUrl}}/attachments/{{.UUID}}">
|
|
|
|
|
|
|
|
{{if FilenameIsImage .Name}}
|
|
|
|
|
|
|
|
<img class="ui image" src="{{AppSubUrl}}/attachments/{{.UUID}}" title='{{$.i18n.Tr "repo.issues.attachment.open_tab" .Name}}'>
|
|
|
|
|
|
|
|
{{else}}
|
|
|
|
|
|
|
|
<span class="ui image octicon octicon-desktop-download" title='{{$.i18n.Tr "repo.issues.attachment.download" .Name}}'></span>
|
|
|
|
|
|
|
|
{{end}}
|
|
|
|
|
|
|
|
</a>
|
|
|
|
{{end}}
|
|
|
|
{{end}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|