{% with request.user.customer.current_subscription as subscription %} {% if subscription %} {% if subscription.cancel_at_period_end %} {% if subscription.status == "active" %}
Your subscription has been canceled but you can continue to use the site for another {{ subscription.current_period_end|timeuntil }}.
{% endif %} {% if subscription.status == "trialing" %}
Your trial has been canceled but you can continue to use the site for another {{ subscription.current_period_end|timeuntil }}.
{% endif %} {% else %} {% if subscription.status == "active" %}
Your subscription will automatically renew in {{ subscription.current_period_end|timeuntil }}.
{% else %} {% if subscription.status == "trialing" %} {% if subscription.plan and request.user.customer.card_kind %}
Your free trial will end in {{ subscription.current_period_end|timeuntil }} after which you commence a {{ subscription.plan_display }} plan.
{% else %}
Your free trial will end in {{ subscription.current_period_end|timeuntil }} after which you will need to get a subscription to continue using the site.
{% endif %} {% else %} {% if subscription.status == "canceled" %} {% if subscription.is_period_current %}
Your subscription has been canceled but you can continue to use the site for another {{ subscription.current_period_end|timeuntil }}.
{% else %}
Your subscription has been canceled.
{% endif %} {% else %}
Your subscription is {{ subscription.status }}.
{% endif %} {% endif %} {% endif %} {% endif %} {% endif %} {% endwith %}