aboutsummaryrefslogtreecommitdiffstats
path: root/templates/repo
diff options
context:
space:
mode:
authora1012112796 <1012112796@qq.com>2022-06-16 20:37:13 +0800
committerGitHub <noreply@github.com>2022-06-16 20:37:13 +0800
commita6b7c3646a91eff2ca77e019814dfb8b586cc28c (patch)
tree537bc9323ccf7762b3e814145022833ba340619b /templates/repo
parente399f0f5b4661ac71bcf4f8badcd04d73b71a640 (diff)
downloadgitea-a6b7c3646a91eff2ca77e019814dfb8b586cc28c.tar.gz
gitea-a6b7c3646a91eff2ca77e019814dfb8b586cc28c.zip
fix `go to file` link for mirror repository (#19983)
the `BaseRepo` not always exit, should use `Repository`. Signed-off-by: a1012112796 <1012112796@qq.com>
Diffstat (limited to 'templates/repo')
-rw-r--r--templates/repo/home.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/home.tmpl b/templates/repo/home.tmpl
index 73c6702a90..1a0323f5d1 100644
--- a/templates/repo/home.tmpl
+++ b/templates/repo/home.tmpl
@@ -74,7 +74,7 @@
</div>
{{end}}
<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"}}
</a>
</div>