mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-03 02:21:17 +02:00
Add repo list data, need front-end fix
This commit is contained in:
1 parent
f047df6e2b
commit
dfcae2a97a
6 files changed
+17
-25
No files matched your search
@@ -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