Hide registration on login modal if 'invite only'

This commit is contained in:
Chris Hunt 2013-06-05 11:06:54 -07:00
parent 24da1ab07e
commit 8f14e46964

View File

@ -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>&nbsp;{{loginButtonText}}</button>
&nbsp;
{{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>&nbsp;{{loginButtonText}}
</button>
{{#unless Discourse.SiteSettings.invite_only}}
&nbsp; {{i18n create_account.invite}}
<a id="new-account-link" {{action showCreateAccount}}>
{{i18n create_account.action}}
</a>
{{/unless}}
{{/if}}
</div>