Skip to content

Commit 70d58cb

Browse files
authored
Merge branch 'main' into readeable-error
2 parents 2f091ab + 8244cfb commit 70d58cb

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.air.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ bin = "gitea"
77
include_ext = ["go", "tmpl"]
88
exclude_dir = ["modules/git/tests", "services/gitdiff/testdata", "modules/avatar/testdata"]
99
include_dir = ["cmd", "models", "modules", "options", "routers", "services", "templates"]
10+
exclude_regex = ["_test.go$"]

routers/web/repo/projects.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,6 @@ func EditProjectPost(ctx *context.Context) {
269269

270270
// ViewProject renders the project board for a project
271271
func ViewProject(ctx *context.Context) {
272-
273272
project, err := models.GetProjectByID(ctx.ParamsInt64(":id"))
274273
if err != nil {
275274
if models.IsErrProjectNotExist(err) {
@@ -332,6 +331,7 @@ func ViewProject(ctx *context.Context) {
332331
return
333332
}
334333

334+
ctx.Data["IsProjectsPage"] = true
335335
ctx.Data["CanWriteProjects"] = ctx.Repo.Permission.CanWrite(unit.TypeProjects)
336336
ctx.Data["Project"] = project
337337
ctx.Data["Boards"] = boards

0 commit comments

Comments
 (0)