From 255981bdc2f81e07f9275e3f1f45279445811e1c Mon Sep 17 00:00:00 2001 From: Simon Detheridge Date: Mon, 11 Feb 2019 11:24:46 +0000 Subject: [PATCH] Merge pull request #1486 from sharelatex/ta-subscription-dash-fix Fix Subscirption Dashboard Messaging GitOrigin-RevId: 601b0df74c6f9f6bcc1c3ba6ecbf64721bc6fb99 --- .../web/app/views/subscriptions/dashboard.pug | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/services/web/app/views/subscriptions/dashboard.pug b/services/web/app/views/subscriptions/dashboard.pug index bdcfcb3d69..6d32684b5f 100644 --- a/services/web/app/views/subscriptions/dashboard.pug +++ b/services/web/app/views/subscriptions/dashboard.pug @@ -38,13 +38,13 @@ block content -if (v1SubscriptionStatus) include ./dashboard/_v1_subscription_status - -if (hasSubscription && !hasDisplayedSubscription) - -hasDisplayedSubscription = true - p You're on an #{settings.appName} Paid plan. Contact - a(href="mailto:support@overleaf.com") support@overleaf.com - | to find out more. - - -if (!hasSubscription) - p You're on the #{settings.appName} Free plan. - | - a(href="/user/subscription/plans").btn.btn-primary Upgrade now + -if (!hasDisplayedSubscription) + -if (hasSubscription) + -hasDisplayedSubscription = true + p You're on an #{settings.appName} Paid plan. Contact + a(href="mailto:support@overleaf.com") support@overleaf.com + | to find out more. + -else + p You're on the #{settings.appName} Free plan. + | + a(href="/user/subscription/plans").btn.btn-primary Upgrade now