summaryrefslogtreecommitdiffstats
path: root/routers/dashboard.go
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-05-24 02:31:58 -0400
committerUnknown <joe2010xtmf@163.com>2014-05-24 02:31:58 -0400
commitb1bdbd7f948b0598e69355ba8312a50c74bc04a7 (patch)
tree1bf401b1d334fab67f72a69a3ff4d2c310cb14c6 /routers/dashboard.go
parent50ba08e2c602993fc283b2d868639820aba57528 (diff)
downloadgitea-b1bdbd7f948b0598e69355ba8312a50c74bc04a7.tar.gz
gitea-b1bdbd7f948b0598e69355ba8312a50c74bc04a7.zip
Almost done issue label #200
Diffstat (limited to 'routers/dashboard.go')
-rw-r--r--routers/dashboard.go11
1 files changed, 2 insertions, 9 deletions
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"