diff options
author | Unknwon <u@gogs.io> | 2016-03-10 08:37:11 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2016-03-10 08:37:11 -0500 |
commit | 3bd7d3b1c55e19d20d2444fab9584ee7bac23ae7 (patch) | |
tree | 82f85bc5c3a7b8fee5b6cdf1f37336c10e73aa24 | |
parent | b44e4d7cb08bb88e2f206101a162662ead29836a (diff) | |
parent | af847ef94e02dd120246fa1e8d7f7ab999f0cc90 (diff) |
Merge pull request #2797 from allonsy/develop
Create custom dashboard title
-rw-r--r-- | routers/user/home.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/routers/user/home.go b/routers/user/home.go index f3f7fa4a..ffebe284 100644 --- a/routers/user/home.go +++ b/routers/user/home.go @@ -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 } |