Clean code

This commit is contained in:
Unknown 2014-03-15 09:17:16 -04:00
parent b3919c577f
commit f174633b36
8 changed files with 56 additions and 60 deletions

View file

@ -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