Hide the registration button depending on the setting
This commit is contained in:
parent
79f3281548
commit
3c65265871
2 changed files with 3 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue