From f6db99b56a01a39b0ef24f36e6e06dbe51332ae9 Mon Sep 17 00:00:00 2001 From: Meghna <11170663+MeghnaAJ@users.noreply.github.com> Date: Wed, 29 Dec 2021 09:12:18 +0530 Subject: [PATCH] UX: improved invite accept page layout (#15418) --- .../discourse/app/templates/invites/show.hbs | 215 +++++++++--------- app/assets/stylesheets/common/base/login.scss | 23 +- app/assets/stylesheets/desktop/login.scss | 6 +- app/assets/stylesheets/mobile/login.scss | 3 + 4 files changed, 138 insertions(+), 109 deletions(-) diff --git a/app/assets/javascripts/discourse/app/templates/invites/show.hbs b/app/assets/javascripts/discourse/app/templates/invites/show.hbs index 4fbe0db6ced..c1d652b49f3 100644 --- a/app/assets/javascripts/discourse/app/templates/invites/show.hbs +++ b/app/assets/javascripts/discourse/app/templates/invites/show.hbs @@ -2,133 +2,136 @@
{{i18n "create_account.subheader_title"}}
+ {{#unless successMessage}} +{{i18n "create_account.subheader_title"}}
+ {{/unless}}{{html-safe successMessage}}
-{{i18n "invites.invited_by"}}
-{{user-info user=invitedBy}}
+{{html-safe successMessage}}
+{{i18n "invites.invited_by"}}
+{{user-info user=invitedBy}}
- {{#if associateHtml}} -- {{html-safe associateHtml}} -
- {{/if}} - - {{#unless isInviteLink}} - - {{/unless}} - - {{#if externalAuthsOnly}} - {{! authOptions are present once the user has followed the OmniAuth flow (e.g. twitter/google/etc) }} - {{#if authOptions}} - {{#unless isInviteLink}} - {{input-tip validation=emailValidation id="account-email-validation"}} - {{/unless}} - {{else}} - {{login-buttons externalLogin=(action "externalLogin")}} + {{#if associateHtml}} ++ {{html-safe associateHtml}} +
{{/if}} - {{/if}} - {{#if discourseConnectEnabled}} - - {{i18n "continue"}} - - {{/if}} + {{#unless isInviteLink}} + + {{/unless}} - {{#if shouldDisplayForm}} -