summaryrefslogtreecommitdiffstats
path: root/routers/user
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-03-15 12:13:45 -0400
committerUnknown <joe2010xtmf@163.com>2014-03-15 12:13:45 -0400
commitdfcae2a97ae57cf8cb9e954b9d69151f5e340745 (patch)
tree46622d1ca40306bcaa0e632f4ea77109d51527d0 /routers/user
parentf047df6e2b69ecb41c3fe4bef746145916aa4063 (diff)
downloadgitea-dfcae2a97ae57cf8cb9e954b9d69151f5e340745.tar.gz
gitea-dfcae2a97ae57cf8cb9e954b9d69151f5e340745.zip
Add repo list data, need front-end fix
Diffstat (limited to 'routers/user')
-rw-r--r--routers/user/user.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/routers/user/user.go b/routers/user/user.go
index 4ba7da1615..8d8691a39f 100644
--- a/routers/user/user.go
+++ b/routers/user/user.go
@@ -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)