diff --git a/routers/web/org/projects.go b/routers/web/org/projects.go
index df16d0a4c..5d8005781 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 e15f548a3..91e17dee2 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 826869ac5..e7927221a 100644
--- a/templates/projects/new.tmpl
+++ b/templates/projects/new.tmpl
@@ -50,7 +50,7 @@
{{if .PageIsEditProjects}}
-
+
{{.locale.Tr "repo.milestones.cancel"}}