diff options
author | Bwko <bouwko@gmail.com> | 2017-01-26 06:32:08 +0100 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2017-01-26 13:32:08 +0800 |
commit | 067ae5d96ee24447789073e20af8b3a0b67a6a22 (patch) | |
tree | 820513ec58ef97cdd8cea3fb31bd286349a1b26a /templates | |
parent | abdc47e482141b46dee4249d86cf240554961b40 (diff) | |
download | gitea-067ae5d96ee24447789073e20af8b3a0b67a6a22.tar.gz gitea-067ae5d96ee24447789073e20af8b3a0b67a6a22.zip |
Fix to reflect selected branch for fork (#762)
PullRequestCtx.HeadInfo did not contain the current selected branch
causing issue #304
Diffstat (limited to 'templates')
-rw-r--r-- | templates/repo/home.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/home.tmpl b/templates/repo/home.tmpl index fd304186a0..9c0ba7be88 100644 --- a/templates/repo/home.tmpl +++ b/templates/repo/home.tmpl @@ -10,7 +10,7 @@ <div class="ui secondary menu"> {{if .PullRequestCtx.Allowed}} <div class="fitted item"> - <a href="{{.BaseRepo.Link}}/compare/{{.BaseRepo.DefaultBranch}}...{{.PullRequestCtx.HeadInfo}}"> + <a href="{{.BaseRepo.Link}}/compare/{{.BaseRepo.DefaultBranch}}...{{.Username}}:{{.BranchName}}"> <button class="ui green small button"><i class="octicon octicon-git-compare"></i></button> </a> </div> |