diff --git a/templates/repo/home.tmpl b/templates/repo/home.tmpl
index fd1b60bef8..69af36ac68 100644
--- a/templates/repo/home.tmpl
+++ b/templates/repo/home.tmpl
@@ -73,32 +73,33 @@
{{end}}
{{svg "octicon-file-moved" 15}}
- {{if or .CanAddFile .CanUploadFile}}
-
+ {{end}}
+ {{if ne $n 0}}
{{EllipsisString .Repository.Name 30}}{{range $i, $v := .TreeNames}}/{{if eq $i $l}}{{EllipsisString $v 30}}{{else}}{{$p := index $.Paths $i}}{{EllipsisString $v 30}}{{end}}{{end}}
{{end}}