We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 31950cb commit 2343feaCopy full SHA for 2343fea
routers/repo/pull.go
@@ -62,6 +62,7 @@ func getForkRepository(ctx *context.Context) *models.Repository {
62
return nil
63
}
64
ctx.Data["ForkFrom"] = forkRepo.Owner.Name + "/" + forkRepo.Name
65
+ ctx.Data["ForkFromOwnerID"] = forkRepo.Owner.ID
66
67
if err := ctx.User.GetOrganizations(true); err != nil {
68
ctx.Handle(500, "GetOrganizations", err)
templates/repo/pulls/fork.tmpl
@@ -24,7 +24,7 @@
24
{{.SignedUser.ShortName 20}}
25
</div>
26
{{range .Orgs}}
27
- {{if .IsOwnedBy $.SignedUser.ID}}
+ {{if and (.IsOwnedBy $.SignedUser.ID) (ne .ID $.ForkFromOwnerID)}}
28
<div class="item" data-value="{{.ID}}">
29
<img class="ui mini image" src="{{.RelAvatarLink}}">
30
{{.ShortName 20}}
0 commit comments