Add repo list data, need front-end fix

This commit is contained in:
Unknown 2014-03-15 12:13:45 -04:00
parent f047df6e2b
commit dfcae2a97a
6 changed files with 17 additions and 25 deletions

View file

@ -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)