mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-02 17:20:53 +02:00
Hide the registration button depending on the setting
This commit is contained in:
1 parent
79f3281548
commit
3c65265871
2 files changed
+3
No files matched your search
@@ -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