Merge pull request #1486 from sharelatex/ta-subscription-dash-fix

Fix Subscirption Dashboard Messaging

GitOrigin-RevId: 601b0df74c6f9f6bcc1c3ba6ecbf64721bc6fb99
This commit is contained in:
Simon Detheridge 2019-02-11 11:24:46 +00:00 committed by sharelatex
parent 7dcc807caf
commit 255981bdc2

View file

@ -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