Browse Source

提交代码

tags/v1.22.1.3^2
ychao_1983 3 years ago
parent
commit
5c82e8a683
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      routers/repo/course.go

+ 2
- 0
routers/repo/course.go View File

@@ -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)


Loading…
Cancel
Save