From 61bcdb926a1674809e173bbd284fcdee1ffea3ad Mon Sep 17 00:00:00 2001 From: Jeff Atwood <jatwood@discourse.org> Date: Sat, 7 Jun 2014 22:27:34 -0700 Subject: [PATCH] make create new account a big button vs. link --- .../templates/mobile/modal/login.js.handlebars | 7 +++---- .../discourse/templates/modal/login.js.handlebars | 10 +++++----- config/locales/client.en.yml | 4 +--- 3 files changed, 9 insertions(+), 12 deletions(-) diff --git a/app/assets/javascripts/discourse/templates/mobile/modal/login.js.handlebars b/app/assets/javascripts/discourse/templates/mobile/modal/login.js.handlebars index 139492de7..644dd2221 100644 --- a/app/assets/javascripts/discourse/templates/mobile/modal/login.js.handlebars +++ b/app/assets/javascripts/discourse/templates/mobile/modal/login.js.handlebars @@ -55,10 +55,9 @@ </button> {{#unless Discourse.SiteSettings.invite_only}} - {{i18n create_account.invite}} - <a id="new-account-link" {{action showCreateAccount}}> - {{i18n create_account.action}} - </a> + <button class="btn btn-large" id="new-account-link" {{action showCreateAccount}}> + {{i18n create_account.title}} + </button> {{/unless}} {{/if}} </div> diff --git a/app/assets/javascripts/discourse/templates/modal/login.js.handlebars b/app/assets/javascripts/discourse/templates/modal/login.js.handlebars index 3f987c6fa..d338e2b85 100644 --- a/app/assets/javascripts/discourse/templates/modal/login.js.handlebars +++ b/app/assets/javascripts/discourse/templates/modal/login.js.handlebars @@ -42,17 +42,17 @@ </div> <div class="modal-footer"> {{#if Discourse.SiteSettings.enable_local_logins}} - <button class='btn btn-large btn-primary' + <button class="btn btn-large btn-primary" {{bind-attr disabled="loginDisabled"}} {{action login}}> <i class="fa fa-unlock"></i> {{loginButtonText}} </button> {{#if showSignupLink}} - {{i18n create_account.invite}} - <a id="new-account-link" {{action createAccount}}> - {{i18n create_account.action}} - </a> + + <button class="btn btn-large" id="new-account-link" {{action createAccount}}> + {{i18n create_account.title}} + </button> {{/if}} {{/if}} diff --git a/config/locales/client.en.yml b/config/locales/client.en.yml index 61930d6f2..941be6ae0 100644 --- a/config/locales/client.en.yml +++ b/config/locales/client.en.yml @@ -482,9 +482,7 @@ en: trust_level: 'Trust Level' create_account: - title: "Create Account" - action: "Create one now!" - invite: "Don't have an account yet?" + title: "Create New Account" failed: "Something went wrong, perhaps this email is already registered, try the forgot password link" forgot_password: