diff options
author | Romain <romdum@users.noreply.github.com> | 2021-09-29 22:53:12 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-29 22:53:12 +0200 |
commit | ecfac78f6ef2cc01e4397c1a92b9a59b7ff0b2ff (patch) | |
tree | 161b9c6fcae7bbda0a827f565fdcc07cadd756ee /routers | |
parent | ba1fdbcfdb26ce7088a7eab0175e224e5325ef72 (diff) | |
download | gitea-ecfac78f6ef2cc01e4397c1a92b9a59b7ff0b2ff.tar.gz gitea-ecfac78f6ef2cc01e4397c1a92b9a59b7ff0b2ff.zip |
Kanban colored boards (#16647)
Add a column Color in ProjectBoard and color picker in new / edit project board form.
Diffstat (limited to 'routers')
-rw-r--r-- | routers/web/repo/projects.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/routers/web/repo/projects.go b/routers/web/repo/projects.go index 556656e5b5..2490efc923 100644 --- a/routers/web/repo/projects.go +++ b/routers/web/repo/projects.go @@ -444,6 +444,7 @@ func AddBoardToProjectPost(ctx *context.Context) { if err := models.NewProjectBoard(&models.ProjectBoard{ ProjectID: project.ID, Title: form.Title, + Color: form.Color, CreatorID: ctx.User.ID, }); err != nil { ctx.ServerError("NewProjectBoard", err) @@ -513,6 +514,8 @@ func EditProjectBoard(ctx *context.Context) { board.Title = form.Title } + board.Color = form.Color + if form.Sorting != 0 { board.Sorting = form.Sorting } |