diff --git a/templates/repo/home.tmpl b/templates/repo/home.tmpl
index 8589574a53ecc..01ea5d9122f85 100644
--- a/templates/repo/home.tmpl
+++ b/templates/repo/home.tmpl
@@ -83,7 +83,7 @@
{{.locale.Tr "repo.find_file.go_to_file"}}
{{end}}
- {{if and .CanWriteCode .IsViewBranch (not .Repository.IsArchived) (not .IsViewFile)}}
+ {{if and .CanWriteCode .IsViewBranch (not .Repository.IsMirror) (not .Repository.IsArchived) (not .IsViewFile)}}