From e3f88719ab40dacca3f37ac3589f2db6223946f6 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Tue, 12 Dec 2017 14:45:02 +0800 Subject: [PATCH] fix source download link when no code unit allowed (#3166) --- templates/repo/release/list.tmpl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/templates/repo/release/list.tmpl b/templates/repo/release/list.tmpl index 0a3af5a844..dd220b6a84 100644 --- a/templates/repo/release/list.tmpl +++ b/templates/repo/release/list.tmpl @@ -41,9 +41,11 @@ {{.TagName}}
+ {{if $.Repository.UnitEnabled $.UnitTypeCode}} {{ShortSha .Sha1}} ZIP TAR.GZ + {{end}}
{{else}}

@@ -64,12 +66,14 @@

{{$.i18n.Tr "repo.release.downloads"}}