summaryrefslogtreecommitdiffstats
path: root/routers/repo/repo.go
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/repo/repo.go
parentf047df6e2b69ecb41c3fe4bef746145916aa4063 (diff)
downloadgitea-dfcae2a97ae57cf8cb9e954b9d69151f5e340745.tar.gz
gitea-dfcae2a97ae57cf8cb9e954b9d69151f5e340745.zip
Add repo list data, need front-end fix
Diffstat (limited to 'routers/repo/repo.go')
-rw-r--r--routers/repo/repo.go17
1 files changed, 0 insertions, 17 deletions
diff --git a/routers/repo/repo.go b/routers/repo/repo.go
index 23f8ea107c..116c199b7d 100644
--- a/routers/repo/repo.go
+++ b/routers/repo/repo.go
@@ -67,20 +67,3 @@ func Delete(ctx *middleware.Context, form auth.DeleteRepoForm) {
ctx.Render.Redirect("/", 302)
}
-
-func List(ctx *middleware.Context) {
- if ctx.User != nil {
- ctx.Render.Redirect("/")
- return
- }
-
- ctx.Data["Title"] = "Repositories"
- repos, err := models.GetRepositories(ctx.User)
- if err != nil {
- ctx.Handle(200, "repo.List", err)
- return
- }
-
- ctx.Data["Repos"] = repos
- ctx.Render.HTML(200, "repo/list", ctx.Data)
-}