Skip to content

Commit 999c8d8

Browse files
committed
handle if two or more attachement have same name
* before only first got downloaded - now each is downloadable * dos also take care of go-gitea#6506 (fix was: go-gitea#6512)
1 parent ed67bbe commit 999c8d8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

templates/repo/release/list.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
{{if .Attachments}}
8585
{{range $attachment := .Attachments}}
8686
<li>
87-
<a target="_blank" rel="noopener noreferrer" href="{{$.RepoLink}}/releases/download/{{$release.TagName | PathEscape}}/{{$attachment.Name | PathEscape}}">
87+
<a target="_blank" rel="noopener noreferrer" href="{{$attachment.DownloadURL}}">
8888
<strong><span class="ui image octicon octicon-package" title='{{$attachment.Name}}'></span> {{$attachment.Name}}</strong>
8989
<span class="ui text grey right">{{$attachment.Size | FileSize}}</span>
9090
</a>

0 commit comments

Comments
 (0)