diff options
author | Unknown <joe2010xtmf@163.com> | 2014-03-15 09:17:16 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-03-15 09:17:16 -0400 |
commit | f174633b36ef102d8e8324dd708b96335188f5dd (patch) | |
tree | d173c5dfa791ff9b107b426b8445d9b552a854b1 /routers/dashboard.go | |
parent | b3919c577f7082bad3955e039691c83b63c241e9 (diff) | |
download | gitea-f174633b36ef102d8e8324dd708b96335188f5dd.tar.gz gitea-f174633b36ef102d8e8324dd708b96335188f5dd.zip |
Clean code
Diffstat (limited to 'routers/dashboard.go')
-rw-r--r-- | routers/dashboard.go | 5 |
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 |