Remove excessive text on signup CTA

This commit is contained in:
Robin Ward 2015-10-30 14:12:56 -04:00
parent 2f58663dda
commit 21b29269d0
2 changed files with 0 additions and 31 deletions

View File

@ -18,36 +18,6 @@ export default Ember.Component.extend({
}
},
signupMethodsTranslated: function() {
const methods = Ember.get('Discourse.LoginMethod.all');
const loginWithEmail = this.siteSettings.enable_local_logins;
if (this.siteSettings.enable_sso) {
return I18n.t('signup_cta.methods.sso');
} else if (methods.length === 0) {
if (loginWithEmail) {
return I18n.t('signup_cta.methods.only_email');
} else {
return I18n.t('signup_cta.methods.unknown');
}
} else if (methods.length === 1) {
let providerName = methods[0].name.capitalize();
if (providerName === "Google_oauth2") {
providerName = "Google";
}
if (loginWithEmail) {
return I18n.t('signup_cta.methods.one_and_email', {provider: providerName});
} else {
return I18n.t('signup_cta.methods.only_other', {provider: providerName});
}
} else {
if (loginWithEmail) {
return I18n.t('signup_cta.methods.multiple', {count: methods.length});
} else {
return I18n.t('signup_cta.methods.multiple_no_email', {count: methods.length});
}
}
}.property(),
_turnOffIfHidden: function() {
if (this.session.get('hideSignupCta')) {
this.session.set('showSignupCta', false);

View File

@ -7,7 +7,6 @@
{{else}}
<p>{{replace-emoji (i18n "signup_cta.intro")}}</p>
<p>{{replace-emoji (i18n "signup_cta.value_prop")}}</p>
<p>{{signupMethodsTranslated}}</p>
<div class="buttons">
{{d-button action="showCreateAccount" label="signup_cta.sign_up" icon="check" class="btn-primary"}}