FEATURE: add TOS and Privacy links to sign up
This commit is contained in:
parent
f4c754b389
commit
a07148830e
|
@ -78,6 +78,13 @@ export default Ember.Controller.extend(ModalFunctionality, {
|
|||
return Ember.isEmpty(this.get('authOptions.auth_provider'));
|
||||
}.property('authOptions.auth_provider'),
|
||||
|
||||
disclaimerHtml: function() {
|
||||
return I18n.t('create_account.disclaimer', {
|
||||
tos_link: this.get('siteSettings.tos_url') || Discourse.getURL('/tos'),
|
||||
privacy_link: this.get('siteSettings.privacy_policy_url') || Discourse.getURL('/privacy')
|
||||
});
|
||||
}.property(),
|
||||
|
||||
passwordInstructions: function() {
|
||||
return this.get('isDeveloper') ? I18n.t('user.password.instructions', {count: Discourse.SiteSettings.min_admin_password_length}) : I18n.t('user.password.instructions', {count: Discourse.SiteSettings.min_password_length});
|
||||
}.property('isDeveloper'),
|
||||
|
|
|
@ -90,6 +90,7 @@
|
|||
{{/if}}
|
||||
|
||||
</form>
|
||||
<div class='disclaimer'>{{{disclaimerHtml}}}</div>
|
||||
</div>
|
||||
{{/if}}
|
||||
{{/d-modal-body}}
|
||||
|
|
|
@ -27,6 +27,10 @@ $input-width: 220px;
|
|||
}
|
||||
}
|
||||
|
||||
.disclaimer {
|
||||
font-size: 0.9em;
|
||||
}
|
||||
|
||||
.user-field.confirm {
|
||||
margin-top: 20px;
|
||||
}
|
||||
|
|
|
@ -946,6 +946,7 @@ en:
|
|||
search_hint: 'username, email or IP address'
|
||||
|
||||
create_account:
|
||||
disclaimer: "By registering, you agree to the <a href='{{privacy_link}}'>privacy policy</a> and <a href='{{tos_link}}'>terms of service</a>."
|
||||
title: "Create New Account"
|
||||
failed: "Something went wrong, perhaps this email is already registered, try the forgot password link"
|
||||
|
||||
|
|
Loading…
Reference in New Issue