mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Add data to ui
This commit is contained in:
		@@ -70,6 +70,7 @@ func RepoAssignment(redirect bool) martini.Handler {
 | 
			
		||||
		}
 | 
			
		||||
		ctx.Repo.Repository = repo
 | 
			
		||||
		ctx.Repo.CloneLink.SSH = fmt.Sprintf("git@%s:%s/%s.git", base.Domain, user.LowerName, repo.LowerName)
 | 
			
		||||
		ctx.Repo.CloneLink.HTTPS = fmt.Sprintf("https://%s/%s/%s.git", base.Domain, user.LowerName, repo.LowerName)
 | 
			
		||||
 | 
			
		||||
		ctx.Data["IsRepositoryValid"] = true
 | 
			
		||||
		ctx.Data["Repository"] = repo
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user