From 5c82e8a68372943d2c68dad205eba396093e81ee Mon Sep 17 00:00:00 2001 From: ychao_1983 Date: Mon, 24 Jan 2022 12:27:36 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- routers/repo/course.go | 2 ++ 1 file changed, 2 insertions(+) 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)