diff options
author | Unknown <joe2010xtmf@163.com> | 2014-03-15 12:13:45 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-03-15 12:13:45 -0400 |
commit | dfcae2a97ae57cf8cb9e954b9d69151f5e340745 (patch) | |
tree | 46622d1ca40306bcaa0e632f4ea77109d51527d0 /routers/repo | |
parent | f047df6e2b69ecb41c3fe4bef746145916aa4063 (diff) | |
download | gitea-dfcae2a97ae57cf8cb9e954b9d69151f5e340745.tar.gz gitea-dfcae2a97ae57cf8cb9e954b9d69151f5e340745.zip |
Add repo list data, need front-end fix
Diffstat (limited to 'routers/repo')
-rw-r--r-- | routers/repo/repo.go | 17 | ||||
-rw-r--r-- | routers/repo/single.go | 1 |
2 files changed, 0 insertions, 18 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) -} diff --git a/routers/repo/single.go b/routers/repo/single.go index e933951050..d796d9639d 100644 --- a/routers/repo/single.go +++ b/routers/repo/single.go @@ -41,7 +41,6 @@ func Single(ctx *middleware.Context, params martini.Params) { ctx.Data["Treenames"] = treenames ctx.Data["IsRepoToolbarSource"] = true ctx.Data["Files"] = files - ctx.Render.HTML(200, "repo/single", ctx.Data) } |