_v1_subscription_status.pug 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. if (v1SubscriptionStatus['team'] && v1SubscriptionStatus['team']['default_plan_name'] != 'free')
  2. - hasDisplayedSubscription = true
  3. p
  4. | You have a legacy group licence from Overleaf v1.
  5. if (v1SubscriptionStatus['team']['will_end_at'])
  6. p
  7. | Your current group licence ends on
  8. |
  9. strong= moment(v1SubscriptionStatus['team']['will_end_at']).format('Do MMM YY')
  10. |
  11. | and will
  12. |
  13. if (v1SubscriptionStatus['team']['will_renew'])
  14. | be automatically renewed.
  15. else
  16. | not be automatically renewed.
  17. if (v1SubscriptionStatus['can_cancel_team'])
  18. p
  19. form(method="POST", action="/user/subscription/v1/cancel")
  20. input(type="hidden", name="_csrf", value=csrfToken)
  21. button().btn.btn-danger Stop automatic renewal
  22. else
  23. p
  24. | Please
  25. |
  26. a(href="/contact") contact support
  27. |
  28. | to make changes to your plan
  29. hr
  30. if (v1SubscriptionStatus['product'])
  31. - hasDisplayedSubscription = true
  32. p
  33. | You have a legacy Overleaf v1
  34. |
  35. strong= v1SubscriptionStatus['product']['display_name']
  36. |
  37. | plan.
  38. p
  39. | Your plan ends on
  40. |
  41. strong= moment(v1SubscriptionStatus['product']['will_end_at']).format('Do MMM YY')
  42. |
  43. | and will
  44. |
  45. if (v1SubscriptionStatus['product']['will_renew'])
  46. | be automatically renewed.
  47. else
  48. | not be automatically renewed.
  49. if (v1SubscriptionStatus['can_cancel'])
  50. p
  51. form(method="POST", action="/user/subscription/v1/cancel")
  52. input(type="hidden", name="_csrf", value=csrfToken)
  53. button().btn.btn-danger Stop automatic renewal
  54. else
  55. p
  56. | Please
  57. |
  58. a(href="/contact") contact support
  59. |
  60. | to make changes to your plan
  61. hr