1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-22 18:28:37 +00:00

Merge pull request #908 from nicolai86/feature/hide-signup-button-884

Make Signup button display configurable - #884
This commit is contained in:
无闻
2015-02-06 21:03:31 -05:00
13 changed files with 17 additions and 1 deletions

View File

@@ -41,6 +41,7 @@ func Home(ctx *middleware.Context) {
ctx.Data["OauthEnabled"] = true
ctx.Data["OauthService"] = setting.OauthService
}
ctx.Data["ShowRegistrationButton"] = setting.Service.ShowRegistrationButton
ctx.Data["PageIsHome"] = true
ctx.HTML(200, HOME)