From b1bdbd7f948b0598e69355ba8312a50c74bc04a7 Mon Sep 17 00:00:00 2001 From: Unknown Date: Sat, 24 May 2014 02:31:58 -0400 Subject: Almost done issue label #200 --- routers/dashboard.go | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'routers/dashboard.go') diff --git a/routers/dashboard.go b/routers/dashboard.go index 78533127fd..6387089e54 100644 --- a/routers/dashboard.go +++ b/routers/dashboard.go @@ -32,9 +32,8 @@ func Home(ctx *middleware.Context) { } for _, repo := range repos { - repo.Owner, err = models.GetUserById(repo.OwnerId) - if err != nil { - ctx.Handle(500, "dashboard.Home(GetUserById)", err) + if err = repo.GetOwner(); err != nil { + ctx.Handle(500, "dashboard.Home(GetOwner)", err) return } } @@ -43,12 +42,6 @@ func Home(ctx *middleware.Context) { ctx.HTML(200, "home") } -func Help(ctx *middleware.Context) { - ctx.Data["PageIsHelp"] = true - ctx.Data["Title"] = "Help" - ctx.HTML(200, "help") -} - func NotFound(ctx *middleware.Context) { ctx.Data["PageIsNotFound"] = true ctx.Data["Title"] = "Page Not Found" -- cgit v1.2.3