From aee45d072ecd241f4eee80a24bba9e86a0b85a4a Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Tue, 12 Dec 2017 15:54:39 +0800 Subject: [PATCH] Fix source download link when no code unit allowed (#3166) (#3169) --- 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 2fed9ae58..d5254044c 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"}}