1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-22 18:28:37 +00:00

Rename boardview type -> template type

This commit is contained in:
Lunny Xiao
2024-03-30 21:01:51 +08:00
parent ecdc683cc1
commit 311a82ff72
9 changed files with 90 additions and 90 deletions

View File

@@ -83,15 +83,15 @@ func IsCardTypeValid(p CardType) bool {
}
}
func createColumnsForProjectsBoradViewType(ctx context.Context, project *Project) error {
func createDefaultColumnsForProject(ctx context.Context, project *Project) error {
var items []string
switch project.BoardViewType {
case BoardViewTypeBugTriage:
switch project.TemplateType {
case TemplateTypeBugTriage:
items = setting.Project.ProjectBoardBugTriageType
case BoardViewTypeBasicKanban:
case TemplateTypeBasicKanban:
items = setting.Project.ProjectBoardBasicKanbanType
case BoardViewTypeNone:
case TemplateTypeNone:
fallthrough
default:
return nil