0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-11-14 14:01:34 +01:00

more renames

This commit is contained in:
Lunny Xiao 2024-04-17 14:05:58 +08:00
parent 6dcbe27336
commit e5cab92f60
No known key found for this signature in database
GPG key ID: C3B7C91B632F738A
3 changed files with 8 additions and 8 deletions

View file

@ -52,7 +52,7 @@ type Column struct {
// TableName return the real table name
func (Column) TableName() string {
return "project_board" // FIXME: the legacy table name should be project_column
return "project_board" // TODO: the legacy table name should be project_column
}
// NumIssues return counter of all issues assigned to the column
@ -155,7 +155,7 @@ func deleteColumnByID(ctx context.Context, columnID int64) error {
}
if column.Default {
return fmt.Errorf("deleteBoardByID: cannot delete default column")
return fmt.Errorf("deleteColumnByID: cannot delete default column")
}
if err = column.removeIssues(ctx); err != nil {

View file

@ -34,7 +34,7 @@ func GetTemplateConfigs() []TemplateConfig {
}
}
// IsTemplateTypeValid checks if the project board type is valid
// IsTemplateTypeValid checks if the project template type is valid
func IsTemplateTypeValid(p TemplateType) bool {
switch p {
case TemplateTypeNone, TemplateTypeBasicKanban, TemplateTypeBugTriage:

View file

@ -327,15 +327,15 @@ func ViewProject(ctx *context.Context) {
return
}
boards, err := project.GetColumns(ctx)
columns, err := project.GetColumns(ctx)
if err != nil {
ctx.ServerError("GetProjectColumns", err)
return
}
issuesMap, err := issues_model.LoadIssuesFromColumnList(ctx, boards)
issuesMap, err := issues_model.LoadIssuesFromColumnList(ctx, columns)
if err != nil {
ctx.ServerError("LoadIssuesOfBoards", err)
ctx.ServerError("LoadIssuesOfColumns", err)
return
}
@ -378,7 +378,7 @@ func ViewProject(ctx *context.Context) {
ctx.Data["CanWriteProjects"] = canWriteProjects(ctx)
ctx.Data["Project"] = project
ctx.Data["IssuesMap"] = issuesMap
ctx.Data["Columns"] = boards // TODO: rename boards to columns in backend
ctx.Data["Columns"] = columns
shared_user.RenderUserHeader(ctx)
err = shared_user.LoadHeaderCount(ctx)
@ -624,7 +624,7 @@ func MoveIssues(ctx *context.Context) {
}
if column.ProjectID != project.ID {
ctx.NotFound("BoardNotInProject", nil)
ctx.NotFound("ColumnNotInProject", nil)
return
}