diff options
author | zeripath <art27@cantab.net> | 2019-02-04 00:56:18 +0000 |
---|---|---|
committer | techknowlogick <matti@mdranta.net> | 2019-02-03 19:56:18 -0500 |
commit | 24a36e84cc8f582ea7cd0d312777e083cd24e279 (patch) | |
tree | 632869756cd420833b9c28fe664bf0da7b3370c1 /templates/repo | |
parent | 01c10a951b9db0b9f020ef657ca71eb5e5882a84 (diff) | |
download | gitea-24a36e84cc8f582ea7cd0d312777e083cd24e279.tar.gz gitea-24a36e84cc8f582ea7cd0d312777e083cd24e279.zip |
Issue 5924 fix compare button (#5929)
* Revert #5877
This unfortunately was not the solution.
Signed-off-by: Andrew Thornton <art27@cantab.net>
* Change permission check to create pull requests to CanReadIssuesOrPulls
Signed-off-by: Andrew Thornton <art27@cantab.net>
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 d7161153cb..72c0e47ed7 100644 --- a/templates/repo/home.tmpl +++ b/templates/repo/home.tmpl @@ -59,7 +59,7 @@ <div class="ui stackable secondary menu mobile--margin-between-items mobile--no-negative-margins"> {{if and .PullRequestCtx.Allowed .IsViewBranch (not .Repository.IsArchived)}} <div class="fitted item"> - <a href="{{.BaseRepo.Link}}/compare/{{.BaseRepo.DefaultBranch | EscapePound}}...{{ if .Repository.IsFork }}{{.Repository.Owner.Name}}{{ else }}{{ .SignedUserName }}{{ end }}:{{.BranchName | EscapePound}}"> + <a href="{{.BaseRepo.Link}}/compare/{{.BaseRepo.DefaultBranch | EscapePound}}...{{if ne .Repository.Owner.Name .BaseRepo.Owner.Name}}{{.Repository.Owner.Name}}:{{end}}{{.BranchName | EscapePound}}"> <button class="ui green tiny compact button"><i class="octicon octicon-git-compare"></i></button> </a> </div> |