diff options
author | Unknown <joe2010xtmf@163.com> | 2014-04-14 04:11:33 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-04-14 04:11:33 -0400 |
commit | c36e7d322e74a55749ce2c2934c6fcfa82cff274 (patch) | |
tree | dbd2c05336815be91f1c59d654ce6f6f24d72872 /routers | |
parent | 57f84fb0516d46b27c60554730956f0c9dff68dd (diff) | |
download | gitea-c36e7d322e74a55749ce2c2934c6fcfa82cff274.tar.gz gitea-c36e7d322e74a55749ce2c2934c6fcfa82cff274.zip |
Mirror updates
Diffstat (limited to 'routers')
-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") } |