We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 181f586 commit 73c07beCopy full SHA for 73c07be
routers/web/repo/projects.go
@@ -269,7 +269,6 @@ func EditProjectPost(ctx *context.Context) {
269
270
// ViewProject renders the project board for a project
271
func ViewProject(ctx *context.Context) {
272
-
273
project, err := models.GetProjectByID(ctx.ParamsInt64(":id"))
274
if err != nil {
275
if models.IsErrProjectNotExist(err) {
@@ -332,6 +331,7 @@ func ViewProject(ctx *context.Context) {
332
331
return
333
}
334
+ ctx.Data["IsProjectsPage"] = true
335
ctx.Data["CanWriteProjects"] = ctx.Repo.Permission.CanWrite(unit.TypeProjects)
336
ctx.Data["Project"] = project
337
ctx.Data["Boards"] = boards
0 commit comments