File tree 1 file changed +4
-0
lines changed 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 41
41
<a href="{{$.RepoLink}}/src/tag/{{.TagName}}" rel="nofollow"><i class="tag icon"></i> {{.TagName}}</a>
42
42
</h4>
43
43
<div class="download">
44
+ {{if $.Repository.UnitEnabled $.UnitTypeCode}}
44
45
<a href="{{$.RepoLink}}/src/commit/{{.Sha1}}" rel="nofollow"><i class="code icon"></i> {{ShortSha .Sha1}}</a>
45
46
<a href="{{$.RepoLink}}/archive/{{.TagName}}.zip" rel="nofollow"><i class="octicon octicon-file-zip"></i> ZIP</a>
46
47
<a href="{{$.RepoLink}}/archive/{{.TagName}}.tar.gz"><i class="octicon octicon-file-zip"></i> TAR.GZ</a>
48
+ {{end}}
47
49
</div>
48
50
{{else}}
49
51
<h3>
64
66
<div class="download">
65
67
<h2>{{$.i18n.Tr "repo.release.downloads"}}</h2>
66
68
<ul class="list">
69
+ {{if $.Repository.UnitEnabled $.UnitTypeCode}}
67
70
<li>
68
71
<a href="{{$.RepoLink}}/archive/{{.TagName}}.zip" rel="nofollow"><i class="octicon octicon-file-zip"></i> {{$.i18n.Tr "repo.release.source_code"}} (ZIP)</a>
69
72
</li>
70
73
<li>
71
74
<a href="{{$.RepoLink}}/archive/{{.TagName}}.tar.gz"><i class="octicon octicon-file-zip"></i> {{$.i18n.Tr "repo.release.source_code"}} (TAR.GZ)</a>
72
75
</li>
76
+ {{end}}
73
77
{{if .Attachments}}
74
78
{{range .Attachments}}
75
79
<li>
You can’t perform that action at this time.
0 commit comments