diff --git a/routers/web/org/projects.go b/routers/web/org/projects.go index c9d63fec5df0..080388f01f8c 100644 --- a/routers/web/org/projects.go +++ b/routers/web/org/projects.go @@ -232,9 +232,11 @@ func EditProject(ctx *context.Context) { return } + ctx.Data["projectID"] = p.ID ctx.Data["title"] = p.Title ctx.Data["content"] = p.Description ctx.Data["redirect"] = ctx.FormString("redirect") + ctx.Data["HomeLink"] = ctx.ContextUser.HomeLink() ctx.HTML(http.StatusOK, tplProjectsNew) } diff --git a/routers/web/repo/projects.go b/routers/web/repo/projects.go index e15f548a38dc..91e17dee295f 100644 --- a/routers/web/repo/projects.go +++ b/routers/web/repo/projects.go @@ -232,6 +232,7 @@ func EditProject(ctx *context.Context) { return } + ctx.Data["projectID"] = p.ID ctx.Data["title"] = p.Title ctx.Data["content"] = p.Description ctx.Data["card_type"] = p.CardType diff --git a/templates/projects/new.tmpl b/templates/projects/new.tmpl index 85ceddec6055..1314884da6a0 100644 --- a/templates/projects/new.tmpl +++ b/templates/projects/new.tmpl @@ -48,7 +48,7 @@