diff options
Diffstat (limited to 'routers/dashboard.go')
-rw-r--r-- | routers/dashboard.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/routers/dashboard.go b/routers/dashboard.go index 2c81cf23c1..71bdcc9f13 100644 --- a/routers/dashboard.go +++ b/routers/dashboard.go @@ -5,6 +5,7 @@ package routers import ( + "github.com/gogits/gogs/models" "github.com/gogits/gogs/modules/base" "github.com/gogits/gogs/modules/middleware" "github.com/gogits/gogs/routers/user" @@ -23,6 +24,11 @@ func Home(ctx *middleware.Context) { return } + repos, _ := models.GetRecentUpdatedRepositories() + for _, repo := range repos { + repo.Owner, _ = models.GetUserById(repo.OwnerId) + } + ctx.Data["Repos"] = repos ctx.Data["PageIsHome"] = true ctx.HTML(200, "home") } |