fix `go to file` link for mirror repository (#19983)

the `BaseRepo` not always exit, should
use `Repository`.

Signed-off-by: a1012112796 <1012112796@qq.com>
This commit is contained in:
a1012112796 2022-06-16 20:37:13 +08:00 committed by GitHub
parent e399f0f5b4
commit a6b7c3646a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@
</div> </div>
{{end}} {{end}}
<div class="fitted item mx-0"> <div class="fitted item mx-0">
<a href="{{.BaseRepo.Link}}/find/{{.BranchNameSubURL}}" class="ui compact basic button"> <a href="{{.Repository.Link}}/find/{{.BranchNameSubURL}}" class="ui compact basic button">
{{.i18n.Tr "repo.find_file.go_to_file"}} {{.i18n.Tr "repo.find_file.go_to_file"}}
</a> </a>
</div> </div>