summaryrefslogtreecommitdiffstats
path: root/routers/home.go
diff options
context:
space:
mode:
authorUnknwon <joe2010xtmf@163.com>2014-08-07 06:40:05 -0400
committerUnknwon <joe2010xtmf@163.com>2014-08-07 06:40:05 -0400
commite8c9bb2c66a1f48820a93b670c2e6e67da94b354 (patch)
tree372f7d3c44e0d3d2f2b7527e482c5cece05ebfee /routers/home.go
parent99eeb08419e63474b4e9d6581335f693d26c0e69 (diff)
downloadgitea-e8c9bb2c66a1f48820a93b670c2e6e67da94b354.tar.gz
gitea-e8c9bb2c66a1f48820a93b670c2e6e67da94b354.zip
Finish new collaboration page
Diffstat (limited to 'routers/home.go')
-rw-r--r--routers/home.go5
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)
}