diff --git a/templates/repo/home.tmpl b/templates/repo/home.tmpl
index d7ce2240a0..5c3eec8ab0 100644
--- a/templates/repo/home.tmpl
+++ b/templates/repo/home.tmpl
@@ -115,19 +115,19 @@
{{if eq $n 0}}
- {{template "repo/clone_buttons" .}}
- {{template "repo/clone_script" .}}
- {{if not $.DisableDownloadSourceArchives}}
+ {{template "repo/clone_buttons" .}}
+ {{template "repo/clone_script" .}}
- {{end}}
{{end}}
{{if and (ne $n 0) (not .IsViewFile) (not .IsBlame) }}