diff options
author | Lanre Adelowo <adelowomailbox@gmail.com> | 2019-01-31 15:55:39 +0100 |
---|---|---|
committer | techknowlogick <matti@mdranta.net> | 2019-01-31 09:55:39 -0500 |
commit | 5c30817b5fa1fdeedc8d4fc02cf228dc0e6dc556 (patch) | |
tree | 7ec52d3615f601de7ed22b5497e3091b44ef3c19 | |
parent | 438848a2caefd20b2bedf8231131a4a3a745f4cf (diff) | |
download | gitea-5c30817b5fa1fdeedc8d4fc02cf228dc0e6dc556.tar.gz gitea-5c30817b5fa1fdeedc8d4fc02cf228dc0e6dc556.zip |
fix compare button on upstream repo leading to 404 (#5877) (#5914)
-rw-r--r-- | templates/repo/home.tmpl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/repo/home.tmpl b/templates/repo/home.tmpl index 0a5886381d..15676e9912 100644 --- a/templates/repo/home.tmpl +++ b/templates/repo/home.tmpl @@ -54,8 +54,8 @@ <div class="ui stackable secondary menu mobile--margin-between-items mobile--no-negative-margins"> {{if and .PullRequestCtx.Allowed .IsViewBranch}} <div class="fitted item"> - <a href="{{.BaseRepo.Link}}/compare/{{.BaseRepo.DefaultBranch | EscapePound}}...{{.Repository.Owner.Name}}:{{.BranchName | EscapePound}}"> - <button class="ui green tiny compact button"><i class="octicon octicon-git-compare"></i></button> + <a href="{{.BaseRepo.Link}}/compare/{{.BaseRepo.DefaultBranch | EscapePound}}...{{ if .Repository.IsFork }}{{.Repository.Owner.Name}}{{ else }}{{ .SignedUserName }}{{ end }}:{{.BranchName | EscapePound}}"> + <button class="ui green tiny compact button"><i class="octicon octicon-git-compare"></i></button> </a> </div> {{end}} |