|
|
@@ -22,6 +22,7 @@ func CreateCourse(ctx *context.Context) { |
|
|
|
org, _ := models.GetUserByName(setting.Course.OrgName) |
|
|
|
|
|
|
|
ctx.Data["Owner"] = org |
|
|
|
ctx.Data["IsCourse"] = true |
|
|
|
|
|
|
|
ctx.HTML(200, tplCreateCourse) |
|
|
|
|
|
|
@@ -37,6 +38,7 @@ func CreateCoursePost(ctx *context.Context, form auth.CreateCourseForm) { |
|
|
|
org, _ := models.GetUserByName(setting.Course.OrgName) |
|
|
|
|
|
|
|
ctx.Data["Owner"] = org |
|
|
|
ctx.Data["IsCourse"] = true |
|
|
|
|
|
|
|
var topics = make([]string, 0) |
|
|
|
var topicsStr = strings.TrimSpace(form.Topics) |
|
|
|