Template
1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo synced 2024-12-01 06:16:09 +01:00

Merge pull request #2797 from allonsy/develop

Create custom dashboard title
This commit is contained in:
Unknwon 2016-03-10 08:37:11 -05:00
commit 3bd7d3b1c5

View file

@ -83,11 +83,11 @@ func retrieveFeeds(ctx *middleware.Context, ctxUserID, userID, offset int64, isP
} }
func Dashboard(ctx *middleware.Context) { func Dashboard(ctx *middleware.Context) {
ctx.Data["Title"] = ctx.Tr("dashboard") ctxUser := getDashboardContextUser(ctx)
ctx.Data["Title"] = ctxUser.DisplayName()
ctx.Data["PageIsDashboard"] = true ctx.Data["PageIsDashboard"] = true
ctx.Data["PageIsNews"] = true ctx.Data["PageIsNews"] = true
ctxUser := getDashboardContextUser(ctx)
if ctx.Written() { if ctx.Written() {
return return
} }