Skip to content

Commit 73c07be

Browse files
GustedStelios Malathouras
Gusted
authored and
Stelios Malathouras
committed
Fix navbar on project view (go-gitea#17749)
- Shows that the project nav item is active when you're viewing a project.
1 parent 181f586 commit 73c07be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routers/web/repo/projects.go

+1-1
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)