Browse Source

Merge pull request #2797 from allonsy/develop

Create custom dashboard title
tags/v1.2.0-rc1
Unknwon 9 years ago
parent
commit
67faa73ea6
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      routers/user/home.go

+ 2
- 2
routers/user/home.go View File

@@ -83,11 +83,11 @@ func retrieveFeeds(ctx *middleware.Context, ctxUserID, userID, offset int64, isP
}

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["PageIsNews"] = true

ctxUser := getDashboardContextUser(ctx)
if ctx.Written() {
return
}


Loading…
Cancel
Save