summaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-04-14 04:11:33 -0400
committerUnknown <joe2010xtmf@163.com>2014-04-14 04:11:33 -0400
commitc36e7d322e74a55749ce2c2934c6fcfa82cff274 (patch)
treedbd2c05336815be91f1c59d654ce6f6f24d72872 /routers
parent57f84fb0516d46b27c60554730956f0c9dff68dd (diff)
downloadgitea-c36e7d322e74a55749ce2c2934c6fcfa82cff274.tar.gz
gitea-c36e7d322e74a55749ce2c2934c6fcfa82cff274.zip
Mirror updates
Diffstat (limited to 'routers')
-rw-r--r--routers/dashboard.go6
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")
}