Skip to content

Commit e615da3

Browse files
mithileshgupta12Mithilesh Gupta
authored andcommitted
Add proper page title for project pages (go-gitea#35773)
Fix go-gitea#35763 Co-authored-by: Mithilesh Gupta <guptamithilesh@protonmail.com>
1 parent 2b71bf2 commit e615da3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

routers/web/org/projects.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -436,6 +436,7 @@ func ViewProject(ctx *context.Context) {
436436
ctx.Data["Project"] = project
437437
ctx.Data["IssuesMap"] = issuesMap
438438
ctx.Data["Columns"] = columns
439+
ctx.Data["Title"] = fmt.Sprintf("%s - %s", project.Title, ctx.ContextUser.DisplayName())
439440

440441
if _, err := shared_user.RenderUserOrgHeader(ctx); err != nil {
441442
ctx.ServerError("RenderUserOrgHeader", err)

0 commit comments

Comments
 (0)