forked from forgejo/forgejo
Mirror updates
This commit is contained in:
parent
57f84fb051
commit
c36e7d322e
8 changed files with 56 additions and 19 deletions
|
@ -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")
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue