fix(project): add title to project view page (#32747)

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
(cherry picked from commit 6bd70d4d87262e3bf423aa8a598cfdcf3aae4008)
This commit is contained in:
metiftikci 2024-12-07 07:44:33 +03:00 committed by Earl Warren
parent 6f2875d3c6
commit 63faaaeda4
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00

View file

@ -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