diff --git a/routers/repo/course.go b/routers/repo/course.go index 9cdb5c12e..44acdfcc0 100644 --- a/routers/repo/course.go +++ b/routers/repo/course.go @@ -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)