From c5773af6a89b0490aaaacef3691e1235e24d4c66 Mon Sep 17 00:00:00 2001 From: Son Nguyen Kim Date: Tue, 19 Jul 2022 15:09:46 +0200 Subject: [PATCH] remove 15 hardcoding (#1164) --- server.py | 2 ++ templates/emails/com/welcome.html | 2 +- templates/header.html | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/server.py b/server.py index f0850c1f..37d8647e 100644 --- a/server.py +++ b/server.py @@ -70,6 +70,7 @@ from app.config import ( PAGE_LIMIT, PADDLE_COUPON_ID, ZENDESK_ENABLED, + MAX_NB_EMAIL_FREE_PLAN, MEM_STORE_URI, ) from app.dashboard.base import dashboard_bp @@ -410,6 +411,7 @@ def jinja2_filter(app): CANONICAL_URL=f"{URL}{request.path}", PAGE_LIMIT=PAGE_LIMIT, ZENDESK_ENABLED=ZENDESK_ENABLED, + MAX_NB_EMAIL_FREE_PLAN=MAX_NB_EMAIL_FREE_PLAN, ) diff --git a/templates/emails/com/welcome.html b/templates/emails/com/welcome.html index 1dae790f..38ac85a6 100644 --- a/templates/emails/com/welcome.html +++ b/templates/emails/com/welcome.html @@ -65,7 +65,7 @@ so you can manage your aliases on the go. {% endcall %} {% call text() %} -Please note that you can't create more than 15 aliases during the trial period. +Please note that you can't create more than {{ MAX_NB_EMAIL_FREE_PLAN }} aliases during the trial period.
{% endcall %} diff --git a/templates/header.html b/templates/header.html index 0497ed2b..a02aa0f2 100644 --- a/templates/header.html +++ b/templates/header.html @@ -122,7 +122,7 @@ + title="When you signed up, you have a free 7-day Premium trial. After that your account will automatically be downgraded to the Free plan. During the trial, the only limit is you can't create more than {{ MAX_NB_EMAIL_FREE_PLAN }} aliases."> Premium expires {{ current_user.trial_end|dt }}