Add repo list data, need front-end fix

This commit is contained in:
Unknown committed 2014-03-15 12:13:45 -04:00
1 parent f047df6e2b
commit dfcae2a97a
6 files changed
+17 -25

No files matched your search

+6 -1
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)