aboutsummaryrefslogtreecommitdiffstats
path: root/templates/mail/release.tmpl
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2022-08-01 00:57:02 +0800
committerGitHub <noreply@github.com>2022-07-31 18:57:02 +0200
commit589677fafb4b77112b7220a1c6089cec71d6db94 (patch)
tree1580defd542b1fe02e1a2f07e5487e6dea47ada6 /templates/mail/release.tmpl
parent2c2f75cb2cf0de6fdeeb931377873dd07ffbe774 (diff)
downloadgitea-589677fafb4b77112b7220a1c6089cec71d6db94.tar.gz
gitea-589677fafb4b77112b7220a1c6089cec71d6db94.zip
Add disable download source configuration (#20548)
Add configuration to enable/disable download source from UI. Co-authored-by: zeripath <art27@cantab.net>
Diffstat (limited to 'templates/mail/release.tmpl')
-rw-r--r--templates/mail/release.tmpl2
1 files changed, 2 insertions, 0 deletions
diff --git a/templates/mail/release.tmpl b/templates/mail/release.tmpl
index a95647105c..931c0d1b54 100644
--- a/templates/mail/release.tmpl
+++ b/templates/mail/release.tmpl
@@ -31,12 +31,14 @@
<br>
{{.locale.Tr "mail.release.downloads"}}
<ul>
+ {{if not .DisableDownloadSourceArchives}}
<li>
<a href="{{.Release.Repo.Link}}/archive/{{.Release.TagName | PathEscapeSegments}}.zip" rel="nofollow"><strong>{{.locale.Tr "mail.release.download.zip"}}</strong></a>
</li>
<li>
<a href="{{.Release.Repo.Link}}/archive/{{.Release.TagName | PathEscapeSegments}}.tar.gz" rel="nofollow"><strong>{{.locale.Tr "mail.release.download.targz"}}</strong></a>
</li>
+ {{end}}
{{if .Release.Attachments}}
{{range .Release.Attachments}}
<li>