mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 18:28:37 +00:00
Add repo list data, need front-end fix
This commit is contained in:
@@ -60,7 +60,12 @@ func Profile(ctx *middleware.Context, params martini.Params) {
|
||||
}
|
||||
ctx.Data["Feeds"] = feeds
|
||||
default:
|
||||
|
||||
repos, err := models.GetRepositories(user)
|
||||
if err != nil {
|
||||
ctx.Handle(200, "user.Profile", err)
|
||||
return
|
||||
}
|
||||
ctx.Data["Repos"] = repos
|
||||
}
|
||||
|
||||
ctx.Render.HTML(200, "user/profile", ctx.Data)
|
||||
|
Reference in New Issue
Block a user