From 7a74957c199420db4005616e79708191c5de20ce Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Fri, 5 May 2023 04:30:47 +0800 Subject: [PATCH] Fix new wiki page mirror (#24518) backport #24395 --------- Co-authored-by: Giteabot --- templates/repo/wiki/pages.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/repo/wiki/pages.tmpl b/templates/repo/wiki/pages.tmpl index 9d3a3e8061..5f7c426877 100644 --- a/templates/repo/wiki/pages.tmpl +++ b/templates/repo/wiki/pages.tmpl @@ -7,7 +7,7 @@ {{.locale.Tr "repo.wiki.pages"}}
- {{if and .CanWriteWiki (not .IsRepositoryMirror)}} + {{if and .CanWriteWiki (not .Repository.IsMirror)}} {{.locale.Tr "repo.wiki.new_page_button"}} {{end}}