From 5169b4a73f8b8e07763adb0d42c847713cc38f54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9e=20Alby?= Date: Thu, 17 Jan 2019 15:54:57 +0100 Subject: [PATCH] Merge pull request #1415 from sharelatex/ta-trial-fix Check if Trial is Current in Subscription Page GitOrigin-RevId: 7a7f562d321bc0f3a952c37f799760a7d42b7ba1 --- .../subscriptions/dashboard/_personal_subscription_recurly.pug | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/web/app/views/subscriptions/dashboard/_personal_subscription_recurly.pug b/services/web/app/views/subscriptions/dashboard/_personal_subscription_recurly.pug index 222ea8e074..cad71f2962 100644 --- a/services/web/app/views/subscriptions/dashboard/_personal_subscription_recurly.pug +++ b/services/web/app/views/subscriptions/dashboard/_personal_subscription_recurly.pug @@ -10,7 +10,7 @@ div(ng-controller="RecurlySubscriptionController") when "active" p !{translate("currently_subscribed_to_plan", {planName:"" + personalSubscription.plan.name + ""})} a(href, ng-click="switchToChangePlanView()", ng-if="showChangePlanButton") !{translate("change_plan")}. - -if (personalSubscription.recurly.trialEndsAtFormatted) + -if (personalSubscription.recurly.trialEndsAtFormatted && personalSubscription.recurly.trial_ends_at > Date.now()) p You're on a free trial which ends on #{personalSubscription.recurly.trialEndsAtFormatted} p !{translate("next_payment_of_x_collectected_on_y", {paymentAmmount:"" + personalSubscription.recurly.price + "", collectionDate:"" + personalSubscription.recurly.nextPaymentDueAt + ""})} p.pull-right