From 7a0defab17867114646e07aea8df1a56576baabe Mon Sep 17 00:00:00 2001 From: Rishabh Garg Date: Wed, 18 Nov 2020 00:00:46 +0530 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Added=20new=20portal=20links=20for?= =?UTF-8?q?=20plan=20checkout=20(#1770)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit refs TryGhost/Ghost#12365 Portal now allows direct checkout links for monthly/yearly plans via Portal links or data attributes, allowing members to directly signup to a paid plan. This PR adds - - A new portal signup link for monthly plan - `/signup/monthly` - A new portal signup link for yearly plan - `/signup/yearly` Co-authored-by: Peter Zimon --- .../admin/app/components/gh-portal-links.hbs | 94 ++++++++++++++----- ghost/admin/app/components/gh-portal-links.js | 8 ++ 2 files changed, 76 insertions(+), 26 deletions(-) diff --git a/ghost/admin/app/components/gh-portal-links.hbs b/ghost/admin/app/components/gh-portal-links.hbs index f8b3faf331..8a685fedea 100644 --- a/ghost/admin/app/components/gh-portal-links.hbs +++ b/ghost/admin/app/components/gh-portal-links.hbs @@ -26,7 +26,7 @@ data-portal {{/if}} - - - - Sign in @@ -71,7 +50,7 @@ data-portal="signin" {{/if}} - + + + + + Sign up/Monthly + +
+
+ {{#if isLink}} + {{this.siteUrl}}/#/portal/signup/monthly + {{else}} + data-portal="signup/monthly" + {{/if}} +
+ +
+ + + + Sign up/Yearly + +
+
+ {{#if isLink}} + {{this.siteUrl}}/#/portal/signup/yearly + {{else}} + data-portal="signup/yearly" + {{/if}} +
+ +
+ + @@ -95,7 +137,7 @@ data-portal="account" {{/if}} -