{% 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 %}

Cancel Subscription

{% else %}

Subscribe

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

Subscription

{# Do not show next billing if subscription has been canceled although is still active #} {% if subscription.is_status_current and not subscription.is_status_temporarily_current %}

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

{% endif %}

Payment History

{% for plan in plans %} {% endfor %}
Plan Interval Description
{{ plan.name }} {{ plan.interval.title }}ly {{ plan.description }} {% if plan.plan == subscription.plan %} 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 %}