summaryrefslogtreecommitdiffstats
path: root/routers/dashboard.go
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-03-15 09:17:16 -0400
committerUnknown <joe2010xtmf@163.com>2014-03-15 09:17:16 -0400
commitf174633b36ef102d8e8324dd708b96335188f5dd (patch)
treed173c5dfa791ff9b107b426b8445d9b552a854b1 /routers/dashboard.go
parentb3919c577f7082bad3955e039691c83b63c241e9 (diff)
downloadgitea-f174633b36ef102d8e8324dd708b96335188f5dd.tar.gz
gitea-f174633b36ef102d8e8324dd708b96335188f5dd.zip
Clean code
Diffstat (limited to 'routers/dashboard.go')
-rw-r--r--routers/dashboard.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/routers/dashboard.go b/routers/dashboard.go
index a75445003a..de9378b0fa 100644
--- a/routers/dashboard.go
+++ b/routers/dashboard.go
@@ -10,12 +10,13 @@ import (
"github.com/gogits/gogs/modules/auth"
"github.com/gogits/gogs/modules/base"
+ "github.com/gogits/gogs/modules/middleware"
"github.com/gogits/gogs/routers/user"
)
-func Home(r render.Render, data base.TmplData, session sessions.Session) {
+func Home(ctx *middleware.Context, r render.Render, data base.TmplData, session sessions.Session) {
if auth.IsSignedIn(session) {
- user.Dashboard(r, data, session)
+ user.Dashboard(ctx)
return
}
data["PageIsHome"] = true