diff options
author | Giteabot <teabot@gitea.io> | 2024-01-09 21:18:13 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-09 21:18:13 +0800 |
commit | 12f418a7e80887ec9927eea27f5770736169c17a (patch) | |
tree | 71220b6dd83be2a0010f46d4b08a9193d2ab6eca /templates | |
parent | 9865aa2394a048d41d7a114dfedbfd02c950c993 (diff) | |
download | gitea-12f418a7e80887ec9927eea27f5770736169c17a.tar.gz gitea-12f418a7e80887ec9927eea27f5770736169c17a.zip |
Add download attribute to release attachments (#28739) (#28740)
Backport #28739 by @JakobDev
Fixes #28736
Co-authored-by: JakobDev <jakobdev@gmx.de>
Diffstat (limited to 'templates')
-rw-r--r-- | templates/repo/release/list.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/release/list.tmpl b/templates/repo/release/list.tmpl index c3e9a665b8..f7d2025733 100644 --- a/templates/repo/release/list.tmpl +++ b/templates/repo/release/list.tmpl @@ -94,7 +94,7 @@ {{if .Attachments}} {{range .Attachments}} <li> - <a target="_blank" rel="nofollow" href="{{.DownloadURL}}"> + <a target="_blank" rel="nofollow" href="{{.DownloadURL}}" download> <strong>{{svg "octicon-package" 16 "gt-mr-2"}}{{.Name}}</strong> </a> <div> |