summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorGiteabot <teabot@gitea.io>2024-01-09 21:18:13 +0800
committerGitHub <noreply@github.com>2024-01-09 21:18:13 +0800
commit12f418a7e80887ec9927eea27f5770736169c17a (patch)
tree71220b6dd83be2a0010f46d4b08a9193d2ab6eca /templates
parent9865aa2394a048d41d7a114dfedbfd02c950c993 (diff)
downloadgitea-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.tmpl2
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>