diff options
author | Josh Frye <joshfng@gmail.com> | 2016-03-04 14:50:34 -0500 |
---|---|---|
committer | Josh Frye <joshfng@gmail.com> | 2016-03-04 18:32:30 -0500 |
commit | 275464e7fb14c3cb33540f05426b1e5cdca9dd2d (patch) | |
tree | 36629035709da8c3134773f73477ab04ffc8131c /templates/repo | |
parent | f6759a731a063d5d2be8a932f8d1e1a784cc0528 (diff) | |
download | gitea-275464e7fb14c3cb33540f05426b1e5cdca9dd2d.tar.gz gitea-275464e7fb14c3cb33540f05426b1e5cdca9dd2d.zip |
Use relative url when showing forked from
Diffstat (limited to 'templates/repo')
-rw-r--r-- | templates/repo/header.tmpl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/repo/header.tmpl b/templates/repo/header.tmpl index 34ef9fafa1..2bae961dae 100644 --- a/templates/repo/header.tmpl +++ b/templates/repo/header.tmpl @@ -10,7 +10,7 @@ <div class="divider"> / </div> <a href="{{$.RepoLink}}">{{.Name}}</a> {{if .IsMirror}}<div class="fork-flag">{{$.i18n.Tr "repo.mirror_from"}} <a target="_blank" href="{{$.Mirror.Address}}">{{$.Mirror.Address}}</a></div>{{end}} - {{if .IsFork}}<div class="fork-flag">{{$.i18n.Tr "repo.forked_from"}} <a href="{{.BaseRepo.RepoLink}}">{{SubStr .BaseRepo.RepoLink 1 -1}}</a></div>{{end}} + {{if .IsFork}}<div class="fork-flag">{{$.i18n.Tr "repo.forked_from"}} <a href="{{.BaseRepo.RepoLink}}">{{SubStr .BaseRepo.RepoRelLink 1 -1}}</a></div>{{end}} </div> <div class="ui right"> @@ -86,4 +86,4 @@ {{else}} <div class="ui divider"></div> {{end}} -</div>
\ No newline at end of file +</div> |