Skip to content

Commit

Permalink
handle if two or more attachement have same name
Browse files Browse the repository at this point in the history
* before only first got downloaded - now each is downloadable
* dos also take care of  go-gitea#6506 (fix was: go-gitea#6512)
  • Loading branch information
6543 committed Dec 28, 2019
1 parent ed67bbe commit 999c8d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/repo/release/list.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
{{if .Attachments}}
{{range $attachment := .Attachments}}
<li>
<a target="_blank" rel="noopener noreferrer" href="{{$.RepoLink}}/releases/download/{{$release.TagName | PathEscape}}/{{$attachment.Name | PathEscape}}">
<a target="_blank" rel="noopener noreferrer" href="{{$attachment.DownloadURL}}">
<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>
Expand Down

0 comments on commit 999c8d8

Please sign in to comment.