From 547e888242eb1f72db10fc47a2b1584623f1c002 Mon Sep 17 00:00:00 2001 From: Uku Taht Date: Thu, 13 May 2021 12:16:31 +0300 Subject: [PATCH] Localize change plan page --- lib/plausible/billing/plans.ex | 2 +- .../templates/billing/change_plan.html.eex | 45 ++++++++++++++----- .../billing/change_plan_preview.html.eex | 4 +- .../templates/billing/upgrade.html.eex | 5 +-- lib/plausible_web/views/billing_view.ex | 4 ++ 5 files changed, 43 insertions(+), 17 deletions(-) diff --git a/lib/plausible/billing/plans.ex b/lib/plausible/billing/plans.ex index 08eb6299c..fe4de594d 100644 --- a/lib/plausible/billing/plans.ex +++ b/lib/plausible/billing/plans.ex @@ -3,7 +3,7 @@ defmodule Plausible.Billing.Plans do %{limit: 150_000_000, yearly_product_id: "648089", yearly_cost: "$4800"} ] - @v2_pricing_date ~D[2017-05-11] + @v2_pricing_date ~D[2021-05-11] def plans_for(user) do raw_plans = diff --git a/lib/plausible_web/templates/billing/change_plan.html.eex b/lib/plausible_web/templates/billing/change_plan.html.eex index 314bfcfa6..ff7d4d253 100644 --- a/lib/plausible_web/templates/billing/change_plan.html.eex +++ b/lib/plausible_web/templates/billing/change_plan.html.eex @@ -1,16 +1,13 @@ +