diff options
author | Unknwon <u@gogs.io> | 2016-03-06 23:57:46 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2016-03-06 23:57:46 -0500 |
commit | 0e9bc2d4108ae32611e4fe65af493913c20d0279 (patch) | |
tree | 58addb3ebbc98174543f5fc44bd60599941e3dd1 /templates/repo/home.tmpl | |
parent | 0ea0c5ec4f24f0fc5ef3231085c74b33a16f98ec (diff) | |
download | gitea-0e9bc2d4108ae32611e4fe65af493913c20d0279.tar.gz gitea-0e9bc2d4108ae32611e4fe65af493913c20d0279.zip |
Fix pull request availability check
Diffstat (limited to 'templates/repo/home.tmpl')
-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 36752a6eab..fe5a621634 100644 --- a/templates/repo/home.tmpl +++ b/templates/repo/home.tmpl @@ -7,9 +7,9 @@ <a class="link" href="{{.Repository.Website}}">{{.Repository.Website}}</a> </p> <div class="ui secondary menu"> - {{if .CanPullRequest}} + {{if .PullRequestCtx.Allowed}} <div class="fitted item"> - <a href="{{.BaseRepo.RepoLink}}/compare/{{.BaseRepo.DefaultBranch}}...{{if not .IsBetweenBranches}}{{$.Owner.Name}}:{{end}}{{$.BranchName}}"> + <a href="{{.BaseRepo.RepoLink}}/compare/{{.BaseRepo.DefaultBranch}}...{{.PullRequestCtx.HeadInfo}}"> <button class="ui green small button"><i class="octicon octicon-git-compare"></i></button> </a> </div> |