From ecab3ea6edcdb1235105b1e437dae9a3d9c5b171 Mon Sep 17 00:00:00 2001
From: Son NK <>
Date: Wed, 3 Jun 2020 21:32:15 +0200
Subject: [PATCH] take into account the case premium user obtains a lifetime
license
- do not show subscription expired date
- show lifetime plan message on settings page
---
app/dashboard/templates/dashboard/setting.html | 8 ++++++--
templates/header.html | 2 +-
2 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/app/dashboard/templates/dashboard/setting.html b/app/dashboard/templates/dashboard/setting.html
index c151f617..6be24b01 100644
--- a/app/dashboard/templates/dashboard/setting.html
+++ b/app/dashboard/templates/dashboard/setting.html
@@ -178,6 +178,9 @@
Manage Subscription
+ {% 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 %}
You are on the Premium plan which expires {{ manual_sub.end_at | dt }}
({{ manual_sub.end_at.format("YYYY-MM-DD") }}).
@@ -190,7 +193,7 @@
You have lifetime access to the Premium plan.
{% if not current_user.paid_lifetime %}
- To support Simple Login you can switch to a paid plan.
+ To support Simple Login you can switch to a paid plan.
Upgrade
{% endif %}
{% elif current_user.in_trial() %}
@@ -244,7 +247,8 @@