move lifetime case to first

This commit is contained in:
Son NK 2020-10-20 17:45:06 +02:00
parent acce32fcc8
commit 635182e1ef
1 changed files with 9 additions and 8 deletions

View File

@ -199,7 +199,14 @@
<div class="card-body">
<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>
<a href="{{ url_for('dashboard.billing') }}" class="btn btn-outline-primary">
Manage Subscription
@ -215,13 +222,7 @@
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>
{% 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() %}
Your Premium trial expires {{ current_user.trial_end | dt }}.
{% else %}