take into account the case premium user obtains a lifetime license
- do not show subscription expired date - show lifetime plan message on settings page
This commit is contained in:
parent
9fc0748fcc
commit
ecab3ea6ed
|
@ -178,6 +178,9 @@
|
||||||
<a href="{{ url_for('dashboard.billing') }}" class="btn btn-outline-primary">
|
<a href="{{ url_for('dashboard.billing') }}" class="btn btn-outline-primary">
|
||||||
Manage Subscription
|
Manage Subscription
|
||||||
</a>
|
</a>
|
||||||
|
{% if current_user.lifetime %}
|
||||||
|
You have however lifetime access to the Premium plan now so make sure to cancel the previous plan :).
|
||||||
|
{% endif %}
|
||||||
{% elif manual_sub %}
|
{% elif manual_sub %}
|
||||||
You are on the Premium plan which expires {{ manual_sub.end_at | dt }}
|
You are on the Premium plan which expires {{ manual_sub.end_at | dt }}
|
||||||
({{ manual_sub.end_at.format("YYYY-MM-DD") }}).
|
({{ manual_sub.end_at.format("YYYY-MM-DD") }}).
|
||||||
|
@ -244,7 +247,8 @@
|
||||||
<div class="card-title">Replace reverse alias</div>
|
<div class="card-title">Replace reverse alias</div>
|
||||||
<div class="mb-3">
|
<div class="mb-3">
|
||||||
When replying to a forwarded email, the <b>reverse-alias</b> is usually included in the attached message.
|
When replying to a forwarded email, the <b>reverse-alias</b> is usually included in the attached message.
|
||||||
You can turn on this option to <b>replace</b> the reverse-alias by the alias. However this breaks PGP-signed emails
|
You can turn on this option to <b>replace</b> the reverse-alias by the alias. However this breaks PGP-signed
|
||||||
|
emails
|
||||||
so please only enable it if you know what you're doing :).
|
so please only enable it if you know what you're doing :).
|
||||||
</div>
|
</div>
|
||||||
<form method="post">
|
<form method="post">
|
||||||
|
|
|
@ -70,7 +70,7 @@
|
||||||
|
|
||||||
<small class="text-success d-block mt-1">Premium
|
<small class="text-success d-block mt-1">Premium
|
||||||
{% set sub = current_user.get_subscription() %}
|
{% set sub = current_user.get_subscription() %}
|
||||||
{% if sub and sub.cancelled %}
|
{% if sub and sub.cancelled and not current_user.lifetime %}
|
||||||
until {{ sub.next_bill_date.strftime("%Y-%m-%d") }}
|
until {{ sub.next_bill_date.strftime("%Y-%m-%d") }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</small>
|
</small>
|
||||||
|
|
Loading…
Reference in a new issue