display next_bill_date on billing page for canceled subscription

This commit is contained in:
Son NK 2020-03-05 08:11:35 +01:00
parent 1ebe6558a0
commit f8ad733b91

View file

@ -12,13 +12,15 @@
<h1 class="h3 mb-5"> Billing </h1>
<p>
You are on the <b>{{ current_user.get_subscription().plan_name() }}</b> plan. Thank you very much for supporting
You are on the <b>{{ sub.plan_name() }}</b> plan. Thank you very much for supporting
SimpleLogin. 🙌
</p>
{% if sub.cancelled %}
<p>
Sad to see you go 😢. Your subscription ends {{ current_user.get_subscription().next_bill_date | dt }}.
Sad to see you go 😢. Your subscription ends on
{{ sub.next_bill_date.year }}-{{ sub.next_bill_date.month}}-{{ sub.next_bill_date.day }}
({{ sub.next_bill_date | dt }}).
</p>
{% else %}