|
|
@ -33,23 +33,26 @@
|
|
|
|
<tr>
|
|
|
|
<tr>
|
|
|
|
<td>{% trans "Subscription" %}</td>
|
|
|
|
<td>{% trans "Subscription" %}</td>
|
|
|
|
<td>
|
|
|
|
<td>
|
|
|
|
{% if subscription.status == 'active' and request.user.vpnuser.subscr_is_failing %}
|
|
|
|
{% if active_subscription %}
|
|
|
|
{% blocktrans trimmed with since=subscription.next_renew|default:user.vpnuser.expiration|date:'Y-m-d' backend=subscription.backend.backend_verbose_name %}
|
|
|
|
{% blocktrans trimmed with until=active_subscription.next_renew|default:user.vpnuser.expiration|date:'Y-m-d' backend=active_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 %}
|
|
|
|
|
|
|
|
<b>ACTIVE</b>. Renews on {{until}} via {{backend}}.
|
|
|
|
<b>ACTIVE</b>. Renews on {{until}} via {{backend}}.
|
|
|
|
{% endblocktrans %}
|
|
|
|
{% endblocktrans %}
|
|
|
|
(<a href="{% url 'payments:cancel_subscr' %}">{% trans "cancel" %}</a>)
|
|
|
|
(<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 %}
|
|
|
|
{% else %}
|
|
|
|
-
|
|
|
|
-
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
{% if not subscription or subscription.status != 'active' %}
|
|
|
|
{% if not active_subscription %}
|
|
|
|
<tr>
|
|
|
|
<tr>
|
|
|
|
<td>{% trans "Expiration" %}</td>
|
|
|
|
<td>{% trans "Expiration" %}</td>
|
|
|
|
<td>
|
|
|
|
<td>
|
|
|
@ -66,7 +69,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
{% if not subscription %}
|
|
|
|
{% if not active_subscription %}
|
|
|
|
<div class="content-box account-fund">
|
|
|
|
<div class="content-box account-fund">
|
|
|
|
<div class="account-payment-box account-payment-tabs">
|
|
|
|
<div class="account-payment-box account-payment-tabs">
|
|
|
|
<div class="account-payment-tab">
|
|
|
|
<div class="account-payment-tab">
|
|
|
|