|
|
|
@ -33,23 +33,26 @@
|
|
|
|
|
<tr>
|
|
|
|
|
<td>{% trans "Subscription" %}</td>
|
|
|
|
|
<td>
|
|
|
|
|
{% if subscription.status == 'active' and request.user.vpnuser.subscr_is_failing %}
|
|
|
|
|
{% blocktrans trimmed with since=subscription.next_renew|default:user.vpnuser.expiration|date:'Y-m-d' backend=subscription.backend.backend_verbose_name %}
|
|
|
|
|
<b>FAILING</b> since {{since}}. ({{backend}})<br />
|
|
|
|
|
Please cancel and subscribe again if you need to switch to another payment method.
|
|
|
|
|
{% endblocktrans %}
|
|
|
|
|
(<a href="{% url 'payments:cancel_subscr' %}">{% trans "cancel" %}</a>)
|
|
|
|
|
{% elif subscription.status == 'active' %}
|
|
|
|
|
{% blocktrans trimmed with until=subscription.next_renew|default:user.vpnuser.expiration|date:'Y-m-d' backend=subscription.backend.backend_verbose_name %}
|
|
|
|
|
{% if active_subscription %}
|
|
|
|
|
{% blocktrans trimmed with until=active_subscription.next_renew|default:user.vpnuser.expiration|date:'Y-m-d' backend=active_subscription.backend.backend_verbose_name %}
|
|
|
|
|
<b>ACTIVE</b>. Renews on {{until}} via {{backend}}.
|
|
|
|
|
{% endblocktrans %}
|
|
|
|
|
(<a href="{% url 'payments:cancel_subscr' %}">{% trans "cancel" %}</a>)
|
|
|
|
|
{% elif last_subscription %}
|
|
|
|
|
{% if last_subscription.status == 'cancelled' %}
|
|
|
|
|
{% trans "<b>CANCELLED</b>. You can subscribe again below." %}
|
|
|
|
|
{% elif last_subscription.status == 'error' %}
|
|
|
|
|
{% trans "<b>Last payment failed</b>, likely because your card expired." %}
|
|
|
|
|
{% trans "You can update your subscription below." %}
|
|
|
|
|
{% elif last_subscription.status == 'new' %}
|
|
|
|
|
{% trans "Pending" %}
|
|
|
|
|
{% endif %}
|
|
|
|
|
{% else %}
|
|
|
|
|
-
|
|
|
|
|
{% endif %}
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
{% if not subscription or subscription.status != 'active' %}
|
|
|
|
|
{% if not active_subscription %}
|
|
|
|
|
<tr>
|
|
|
|
|
<td>{% trans "Expiration" %}</td>
|
|
|
|
|
<td>
|
|
|
|
@ -66,7 +69,7 @@
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
{% if not subscription %}
|
|
|
|
|
{% if not active_subscription %}
|
|
|
|
|
<div class="content-box account-fund">
|
|
|
|
|
<div class="account-payment-box account-payment-tabs">
|
|
|
|
|
<div class="account-payment-tab">
|
|
|
|
|