diff --git a/routers/web/user/home.go b/routers/web/user/home.go index 959b1aa1e9859..af5750e616057 100644 --- a/routers/web/user/home.go +++ b/routers/web/user/home.go @@ -72,8 +72,14 @@ func Dashboard(ctx *context.Context) { ctx.Data["PageIsDashboard"] = true ctx.Data["PageIsNews"] = true + var uid int64 + if ctxUser != nil { + uid = ctxUser.ID + } + ctx.PageData["dashboardRepoList"] = map[string]interface{}{ "searchLimit": setting.UI.User.RepoPagingNum, + "uid": uid, } if setting.Service.EnableUserHeatmap { diff --git a/templates/user/dashboard/repolist.tmpl b/templates/user/dashboard/repolist.tmpl index e2cfa76e88328..c02cdecd49dc3 100644 --- a/templates/user/dashboard/repolist.tmpl +++ b/templates/user/dashboard/repolist.tmpl @@ -2,6 +2,7 @@ -