diff --git a/routers/web/org/projects.go b/routers/web/org/projects.go
index df16d0a4c76..5d8005781d4 100644
--- a/routers/web/org/projects.go
+++ b/routers/web/org/projects.go
@@ -245,9 +245,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 e15f548a38d..91e17dee295 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 826869ac5da..e7927221a81 100644
--- a/templates/projects/new.tmpl
+++ b/templates/projects/new.tmpl
@@ -50,7 +50,7 @@
{{if .PageIsEditProjects}}
-
+
{{.locale.Tr "repo.milestones.cancel"}}