aboutsummaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
authormetiftikci <metiftikci@hotmail.com>2024-12-07 07:44:33 +0300
committerGitHub <noreply@github.com>2024-12-07 12:44:33 +0800
commit6bd70d4d87262e3bf423aa8a598cfdcf3aae4008 (patch)
tree67b6bbef8dc29eb3ab1bb03eb720a3f758925108 /routers
parent5449da744876f77d3c3c5d2ceae25a746aa2c81b (diff)
downloadgitea-6bd70d4d87262e3bf423aa8a598cfdcf3aae4008.tar.gz
gitea-6bd70d4d87262e3bf423aa8a598cfdcf3aae4008.zip
fix(project): add title to project view page (#32747)
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Diffstat (limited to 'routers')
-rw-r--r--routers/web/repo/projects.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/routers/web/repo/projects.go b/routers/web/repo/projects.go
index 799ce3ad80..95ae84ab93 100644
--- a/routers/web/repo/projects.go
+++ b/routers/web/repo/projects.go
@@ -425,6 +425,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