]> source.dussan.org Git - gitea.git/commitdiff
Fix new wiki page mirror (#24518)
authorLunny Xiao <xiaolunwen@gmail.com>
Thu, 4 May 2023 20:30:47 +0000 (04:30 +0800)
committerGitHub <noreply@github.com>
Thu, 4 May 2023 20:30:47 +0000 (16:30 -0400)
backport #24395

---------

Co-authored-by: Giteabot <teabot@gitea.io>
templates/repo/wiki/pages.tmpl

index 9d3a3e8061f28feda436b67465f5964717b76be7..5f7c426877b28f2442bd46cfd4137dc0149c59f9 100644 (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>