File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -427,7 +427,6 @@ func RepoAssignment() macaron.Handler {
427
427
return
428
428
}
429
429
}
430
- ctx .Data ["IsForkedRepo" ] = repo .IsFork
431
430
432
431
// People who have push access or have forked repository can propose a new pull request.
433
432
if ctx .Repo .IsWriter () || (ctx .IsSigned && ctx .User .HasForkedRepo (ctx .Repo .Repository .ID )) {
Original file line number Diff line number Diff line change 25
25
</div>
26
26
{{template "repo/sub_menu" .}}
27
27
<div class="ui secondary menu">
28
- {{if .PullRequestCtx.Allowed}}
28
+ {{if and .PullRequestCtx.Allowed .IsViewBranch }}
29
29
<div class="fitted item">
30
- <a href="{{.BaseRepo.Link}}/compare/{{.BaseRepo.DefaultBranch}}...{{if .IsForkedRepo}}{{. Repository.Owner.Name}}:{{else}}{{if .SignedUser.HasForkedRepo .BaseRepo.ID}}{{.SignedUser.Name}}:{{end}}{{end}} {{.BranchName}}">
30
+ <a href="{{.BaseRepo.Link}}/compare/{{.BaseRepo.DefaultBranch}}...{{. Repository.Owner.Name}}:{{.BranchName}}">
31
31
<button class="ui green tiny compact button"><i class="octicon octicon-git-compare"></i></button>
32
32
</a>
33
33
</div>
You can’t perform that action at this time.
0 commit comments