فهرست منبع

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

Fix Subscirption Dashboard Messaging

GitOrigin-RevId: 601b0df74c6f9f6bcc1c3ba6ecbf64721bc6fb99
Simon Detheridge 7 سال پیش
والد
کامیت
255981bdc2
1فایلهای تغییر یافته به همراه10 افزوده شده و 10 حذف شده
  1. 10 10
      services/web/app/views/subscriptions/dashboard.pug

+ 10 - 10
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