mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 12:37:14 -04:00 
			
		
		
		
	Fix some SimpleMDE (#9400)
Signed-off-by: jolheiser <john.olheiser@gmail.com>
This commit is contained in:
		
				
					committed by
					
						 techknowlogick
						techknowlogick
					
				
			
			
				
	
			
			
			
						parent
						
							590d56dbb3
						
					
				
				
					commit
					ba8f93a14e
				
			| @@ -458,6 +458,8 @@ func DeleteFilePost(ctx *context.Context, form auth.DeleteRepoFileForm) { | |||||||
|  |  | ||||||
| func renderUploadSettings(ctx *context.Context) { | func renderUploadSettings(ctx *context.Context) { | ||||||
| 	ctx.Data["RequireDropzone"] = true | 	ctx.Data["RequireDropzone"] = true | ||||||
|  | 	ctx.Data["RequireTribute"] = true | ||||||
|  | 	ctx.Data["RequireSimpleMDE"] = true | ||||||
| 	ctx.Data["UploadAllowedTypes"] = strings.Join(setting.Repository.Upload.AllowedTypes, ",") | 	ctx.Data["UploadAllowedTypes"] = strings.Join(setting.Repository.Upload.AllowedTypes, ",") | ||||||
| 	ctx.Data["UploadMaxSize"] = setting.Repository.Upload.FileMaxSize | 	ctx.Data["UploadMaxSize"] = setting.Repository.Upload.FileMaxSize | ||||||
| 	ctx.Data["UploadMaxFiles"] = setting.Repository.Upload.MaxFiles | 	ctx.Data["UploadMaxFiles"] = setting.Repository.Upload.MaxFiles | ||||||
|   | |||||||
| @@ -588,6 +588,7 @@ func ViewPullFiles(ctx *context.Context) { | |||||||
| 	setPathsCompareContext(ctx, baseCommit, commit, headTarget) | 	setPathsCompareContext(ctx, baseCommit, commit, headTarget) | ||||||
|  |  | ||||||
| 	ctx.Data["RequireHighlightJS"] = true | 	ctx.Data["RequireHighlightJS"] = true | ||||||
|  | 	ctx.Data["RequireSimpleMDE"] = true | ||||||
| 	ctx.Data["RequireTribute"] = true | 	ctx.Data["RequireTribute"] = true | ||||||
| 	if ctx.Data["Assignees"], err = ctx.Repo.Repository.GetAssignees(); err != nil { | 	if ctx.Data["Assignees"], err = ctx.Repo.Repository.GetAssignees(); err != nil { | ||||||
| 		ctx.ServerError("GetAssignees", err) | 		ctx.ServerError("GetAssignees", err) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user