mirror of
https://gitcode.com/gitea/gitea.git
synced 2025-10-18 05:33:16 +08:00
Hide the registration button depending on the setting
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user