summaryrefslogtreecommitdiffstats
path: root/templates/repo
diff options
context:
space:
mode:
authorJakobDev <jakobdev@gmx.de>2024-01-09 09:51:20 +0100
committerGitHub <noreply@github.com>2024-01-09 16:51:20 +0800
commita80debc208fbf0ecf6ca734e454cae08adafb570 (patch)
tree3bcbef16085645348ed6c918bff1182d53028aa8 /templates/repo
parentaa4d78431f1acaff1aca8ec1c2b2dd36834d68dd (diff)
downloadgitea-a80debc208fbf0ecf6ca734e454cae08adafb570.tar.gz
gitea-a80debc208fbf0ecf6ca734e454cae08adafb570.zip
Add download attribute to release attachments (#28739)
Fixes #28736
Diffstat (limited to 'templates/repo')
-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>