Fix new wiki page mirror (#24518)

backport #24395

---------

Co-authored-by: Giteabot <teabot@gitea.io>
This commit is contained in:
Lunny Xiao 2023-05-05 04:30:47 +08:00 committed by GitHub
parent f979569a3d
commit 7a74957c19
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,7 +7,7 @@
{{.locale.Tr "repo.wiki.pages"}}
</div>
<div>
{{if and .CanWriteWiki (not .IsRepositoryMirror)}}
{{if and .CanWriteWiki (not .Repository.IsMirror)}}
<a class="ui green small button" href="{{.RepoLink}}/wiki?action=_new">{{.locale.Tr "repo.wiki.new_page_button"}}</a>
{{end}}
</div>