mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 00:20:25 +08:00 
			
		
		
		
	Code clean up for new config options
This commit is contained in:
		@@ -257,7 +257,7 @@ func Home(ctx *context.Context) {
 | 
			
		||||
		ctx.Data["LastCommitUser"] = models.ValidateCommitWithEmail(lastCommit)
 | 
			
		||||
		if ctx.Repo.IsWriter() && ctx.Repo.IsViewBranch {
 | 
			
		||||
			ctx.Data["NewFileLink"] = newFileLink + "/" + treename
 | 
			
		||||
			if setting.UploadEnabled {
 | 
			
		||||
			if !setting.Repository.Upload.Enabled {
 | 
			
		||||
				ctx.Data["UploadFileLink"] = uploadFileLink + "/" + treename
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user