mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 11:41:32 +01:00 
			
		
		
		
	
							parent
							
								
									31950cb262
								
							
						
					
					
						commit
						2343feadd4
					
				| @ -62,6 +62,7 @@ func getForkRepository(ctx *context.Context) *models.Repository { | ||||
| 		return nil | ||||
| 	} | ||||
| 	ctx.Data["ForkFrom"] = forkRepo.Owner.Name + "/" + forkRepo.Name | ||||
| 	ctx.Data["ForkFromOwnerID"] = forkRepo.Owner.ID | ||||
| 
 | ||||
| 	if err := ctx.User.GetOrganizations(true); err != nil { | ||||
| 		ctx.Handle(500, "GetOrganizations", err) | ||||
|  | ||||
| @ -24,7 +24,7 @@ | ||||
| 									{{.SignedUser.ShortName 20}} | ||||
| 								</div> | ||||
| 								{{range .Orgs}} | ||||
| 									{{if .IsOwnedBy $.SignedUser.ID}} | ||||
| 									{{if and (.IsOwnedBy $.SignedUser.ID) (ne .ID $.ForkFromOwnerID)}} | ||||
| 										<div class="item" data-value="{{.ID}}"> | ||||
| 											<img class="ui mini image" src="{{.RelAvatarLink}}"> | ||||
| 											{{.ShortName 20}} | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user