diff options
author | Ethan Koenig <etk39@cornell.edu> | 2017-05-31 10:47:42 -0400 |
---|---|---|
committer | Bo-Yi Wu <appleboy.tw@gmail.com> | 2017-05-31 09:47:42 -0500 |
commit | 5554165a0c5da0a62165d9c429839f4a56b01af7 (patch) | |
tree | 18d231ebfd4962f62846d300eda3348c91e77ee9 /templates/repo | |
parent | bfb44f885468839259bc2ead999953cdd85654e1 (diff) | |
download | gitea-5554165a0c5da0a62165d9c429839f4a56b01af7.tar.gz gitea-5554165a0c5da0a62165d9c429839f4a56b01af7.zip |
Fix pull request compare link (#1832)
* Fix pull request compare link
* Integration test
Diffstat (limited to 'templates/repo')
-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 9c0ba7be88..96109761ec 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}}...{{.Username}}:{{.BranchName}}"> + <a href="{{.BaseRepo.Link}}/compare/{{.BaseRepo.DefaultBranch}}...{{.SignedUser.Name}}:{{.BranchName}}"> <button class="ui green small button"><i class="octicon octicon-git-compare"></i></button> </a> </div> |