mirror of
https://github.com/simple-login/app.git
synced 2024-09-30 05:31:30 +02:00
move lifetime case to first
This commit is contained in:
parent
acce32fcc8
commit
635182e1ef
@ -199,7 +199,14 @@
|
|||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<div class="card-title mb-3">Current Plan</div>
|
<div class="card-title mb-3">Current Plan</div>
|
||||||
|
|
||||||
{% if current_user.get_subscription() %}
|
{% if current_user.lifetime %}
|
||||||
|
You have lifetime access to the Premium plan.
|
||||||
|
{% if not current_user.paid_lifetime %}
|
||||||
|
<br>
|
||||||
|
To support Simple Login you can switch to a paid plan. <br>
|
||||||
|
<a href="{{ url_for('dashboard.pricing') }}" class="btn btn-sm btn-outline-primary">Upgrade</a>
|
||||||
|
{% endif %}
|
||||||
|
{% elif current_user.get_subscription() %}
|
||||||
You are on the {{ current_user.get_subscription().plan_name() }} plan. <br>
|
You are on the {{ current_user.get_subscription().plan_name() }} plan. <br>
|
||||||
<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
|
||||||
@ -215,13 +222,7 @@
|
|||||||
To gain additional features and support Simple Login you can upgrade to a Premium plan. <br>
|
To gain additional features and support Simple Login you can upgrade to a Premium plan. <br>
|
||||||
<a href="{{ url_for('dashboard.pricing') }}" class="btn btn-sm btn-outline-primary">Upgrade</a>
|
<a href="{{ url_for('dashboard.pricing') }}" class="btn btn-sm btn-outline-primary">Upgrade</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% elif current_user.lifetime %}
|
|
||||||
You have lifetime access to the Premium plan.
|
|
||||||
{% if not current_user.paid_lifetime %}
|
|
||||||
<br>
|
|
||||||
To support Simple Login you can switch to a paid plan. <br>
|
|
||||||
<a href="{{ url_for('dashboard.pricing') }}" class="btn btn-sm btn-outline-primary">Upgrade</a>
|
|
||||||
{% endif %}
|
|
||||||
{% elif current_user.in_trial() %}
|
{% elif current_user.in_trial() %}
|
||||||
Your Premium trial expires {{ current_user.trial_end | dt }}.
|
Your Premium trial expires {{ current_user.trial_end | dt }}.
|
||||||
{% else %}
|
{% else %}
|
||||||
|
Loading…
Reference in New Issue
Block a user