From 2d027ad0edc0e91c8b078305c9db5e3670313c5b Mon Sep 17 00:00:00 2001 From: hiifong Date: Fri, 7 Jul 2023 19:09:57 +0800 Subject: [PATCH] hide btn for mirror repo --- templates/repo/home.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)}}