diff --git a/backend/lib/azimutt_web/controllers/organization_billing_controller.ex b/backend/lib/azimutt_web/controllers/organization_billing_controller.ex index 76bb74509..a9bdf5523 100644 --- a/backend/lib/azimutt_web/controllers/organization_billing_controller.ex +++ b/backend/lib/azimutt_web/controllers/organization_billing_controller.ex @@ -62,7 +62,10 @@ defmodule AzimuttWeb.OrganizationBillingController do with {:ok, %Organization{} = organization} <- Organizations.get_organization(organization_id, current_user) do Organizations.validate_organization_plan(organization) - conn |> redirect(to: Routes.organization_billing_path(conn, :index, organization_id, source: "refresh")) + + conn + |> put_flash(:info, "Plan refreshed!") + |> redirect(to: Routes.organization_billing_path(conn, :index, organization_id, source: "refresh")) end end diff --git a/backend/lib/azimutt_web/templates/organization/billing.html.heex b/backend/lib/azimutt_web/templates/organization/billing.html.heex index 5216e17d6..f03250984 100644 --- a/backend/lib/azimutt_web/templates/organization/billing.html.heex +++ b/backend/lib/azimutt_web/templates/organization/billing.html.heex @@ -19,6 +19,22 @@ Change you seats using the "Manage your subscription" button. <% end %>

+ <%= if @organization.plan == "pro" do %> +
+
+
+ +
+
+

This is a legacy plan.

+
+ Please migrate to the new ones as mentionned in the email.
+ You will have to cancel ("Manage your subscription") it and subscribe again. +
+
+
+
+ <% end %>
<%= if length(@subscriptions) > 1 do %>
diff --git a/backend/lib/azimutt_web/templates/organization/show.html.heex b/backend/lib/azimutt_web/templates/organization/show.html.heex index f385f075d..03503224f 100644 --- a/backend/lib/azimutt_web/templates/organization/show.html.heex +++ b/backend/lib/azimutt_web/templates/organization/show.html.heex @@ -1,8 +1,25 @@ +<%= if @organization.plan == "pro" do %> +
+
+
+ +
+
+

You are using the legacy Pro plan.

+
+ Please migrate to the new plans as mentionned in the email. +
+
+
+
+<% end %> + <%= if @projects == [] do %> <%= render "_project_list_empty.html", conn: @conn, organization: @organization %> <% else %> <%= render "_project_list.html", conn: @conn, projects: @projects %> <% end %> + <% user = @conn.assigns.current_user %>