diff options
author | Unknwon <joe2010xtmf@163.com> | 2014-08-07 06:40:05 -0400 |
---|---|---|
committer | Unknwon <joe2010xtmf@163.com> | 2014-08-07 06:40:05 -0400 |
commit | e8c9bb2c66a1f48820a93b670c2e6e67da94b354 (patch) | |
tree | 372f7d3c44e0d3d2f2b7527e482c5cece05ebfee /routers/home.go | |
parent | 99eeb08419e63474b4e9d6581335f693d26c0e69 (diff) | |
download | gitea-e8c9bb2c66a1f48820a93b670c2e6e67da94b354.tar.gz gitea-e8c9bb2c66a1f48820a93b670c2e6e67da94b354.zip |
Finish new collaboration page
Diffstat (limited to 'routers/home.go')
-rw-r--r-- | routers/home.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/routers/home.go b/routers/home.go index 770aca034b..4f7abea7a3 100644 --- a/routers/home.go +++ b/routers/home.go @@ -28,6 +28,11 @@ func Home(ctx *middleware.Context) { return } + if setting.OauthService != nil { + ctx.Data["OauthEnabled"] = true + ctx.Data["OauthService"] = setting.OauthService + } + ctx.Data["PageIsHome"] = true ctx.HTML(200, HOME) } |