{% extends "djstripe/base.html" %} {% block title %}Accounts Dashboard{% endblock title %} {% block content %} {{ block.super }}
{% include "djstripe/includes/_subscription_status.html" %}

Account Information

Credit Card on file. Show Card

{% if subscription.is_status_current and not subscription.is_status_temporarily_current %}

Next billed on {{ subscription.current_period_end|date }}.

You can change your plan or cancel your subscription.

{% else %}

You can subscribe.

{% endif %}

Or consult your payment history.

{% if plans %} {# Show available plans #}

Subscription

{% for plan in plans %} {% endfor %}
Plan Interval Description
{{ plan.name }} {{ plan.interval.title }}ly {{ plan.description }} {% if plan.plan == subscription.plan and subscription.status != subscription.STATUS_CANCELLED %} Your plan {% else %} Not your plan {% endif %}
{% else %} {# No plans so just show payment history #} {% include "djstripe/includes/_history_table.html" %} {% endif %}
{% endblock content %} {% block javascript %} {{ block.super }} {% if plans %} {% else %} {% endif %} {% endblock javascript %}