mirror of
https://gitee.com/gitea/gitea
synced 2026-01-02 21:56:36 +08: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