_v1_subscription_status.pug 1.6 KB

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