aboutsummaryrefslogtreecommitdiffstats
path: root/templates/repo/release/list.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'templates/repo/release/list.tmpl')
-rw-r--r--templates/repo/release/list.tmpl4
1 files changed, 3 insertions, 1 deletions
diff --git a/templates/repo/release/list.tmpl b/templates/repo/release/list.tmpl
index f9bc0ebb02..5f06bf45d4 100644
--- a/templates/repo/release/list.tmpl
+++ b/templates/repo/release/list.tmpl
@@ -82,7 +82,9 @@
<a class="mono" href="{{$.RepoLink}}/src/commit/{{.Sha1}}" rel="nofollow">{{svg "octicon-git-commit" 16 "mr-2"}}{{ShortSha .Sha1}}</a>
</span>
{{end}}
- {{template "repo/branch_dropdown" dict "root" $ "release" .}}
+ {{if .Sha1 }}
+ {{template "repo/branch_dropdown" dict "root" $ "release" .}}
+ {{end}}
{{end}}
</div>
<div class="ui twelve wide column detail">