mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 10:50:26 -06:00
Hide registration on login modal if 'invite only'
This commit is contained in:
parent
24da1ab07e
commit
8f14e46964
@ -59,8 +59,17 @@
|
||||
{{i18n login.authenticating}}
|
||||
{{/if}}
|
||||
{{#if Discourse.SiteSettings.enable_local_logins}}
|
||||
<button class='btn btn-large btn-primary' {{bindAttr disabled="loginDisabled"}} {{action login}}><i class="icon-unlock"></i> {{loginButtonText}}</button>
|
||||
|
||||
{{i18n create_account.invite}} <a id="new-account-link" {{action showCreateAccount}}>{{i18n create_account.action}}</a>
|
||||
<button class='btn btn-large btn-primary'
|
||||
{{bindAttr disabled="loginDisabled"}}
|
||||
{{action login}}>
|
||||
<i class="icon-unlock"></i> {{loginButtonText}}
|
||||
</button>
|
||||
|
||||
{{#unless Discourse.SiteSettings.invite_only}}
|
||||
{{i18n create_account.invite}}
|
||||
<a id="new-account-link" {{action showCreateAccount}}>
|
||||
{{i18n create_account.action}}
|
||||
</a>
|
||||
{{/unless}}
|
||||
{{/if}}
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user