diff options
Diffstat (limited to 'templates/repo/release')
-rw-r--r-- | templates/repo/release/list.tmpl | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/templates/repo/release/list.tmpl b/templates/repo/release/list.tmpl index 7ee58c6b10..9df2f6cb81 100644 --- a/templates/repo/release/list.tmpl +++ b/templates/repo/release/list.tmpl @@ -14,7 +14,7 @@ {{end}} </h2> <ul id="release-list"> - {{range .Releases}} + {{range $release := .Releases}} <li class="ui grid"> <div class="ui four wide column meta"> {{if .IsTag}} @@ -75,14 +75,14 @@ </li> {{end}} {{if .Attachments}} - {{range .Attachments}} - <li> - <a target="_blank" rel="noopener noreferrer" href="{{AppSubUrl}}/attachments/{{.UUID}}"> - <strong><span class="ui image octicon octicon-package" title='{{.Name}}'></span> {{.Name}}</strong> - <span class="ui text grey right">{{.Size | FileSize}}</span> - </a> - </li> - {{end}} + {{range $attachment := .Attachments}} + <li> + <a target="_blank" rel="noopener noreferrer" href="{{$.RepoLink}}/releases/download/{{$release.TagName}}/{{$attachment.Name}}"> + <strong><span class="ui image octicon octicon-package" title='{{$attachment.Name}}'></span> {{$attachment.Name}}</strong> + <span class="ui text grey right">{{$attachment.Size | FileSize}}</span> + </a> + </li> + {{end}} {{end}} </ul> </div> |