From 63faaaeda4bc512a4a8c27e6c115fec5224272c7 Mon Sep 17 00:00:00 2001 From: metiftikci Date: Sat, 7 Dec 2024 07:44:33 +0300 Subject: [PATCH] fix(project): add title to project view page (#32747) Co-authored-by: wxiaoguang (cherry picked from commit 6bd70d4d87262e3bf423aa8a598cfdcf3aae4008) --- routers/web/repo/projects.go | 1 + 1 file changed, 1 insertion(+) diff --git a/routers/web/repo/projects.go b/routers/web/repo/projects.go index 878b7ee699..f4b027dae1 100644 --- a/routers/web/repo/projects.go +++ b/routers/web/repo/projects.go @@ -363,6 +363,7 @@ func ViewProject(ctx *context.Context) { return } + ctx.Data["Title"] = project.Title ctx.Data["IsProjectsPage"] = true ctx.Data["CanWriteProjects"] = ctx.Repo.Permission.CanWrite(unit.TypeProjects) ctx.Data["Project"] = project