From 2f9d6bf7cddb0226759459241bc32f32cb20c3f4 Mon Sep 17 00:00:00 2001 From: Jason Zimdars Date: Tue, 23 Dec 2025 12:28:15 -0600 Subject: [PATCH] Add obvious upgrade button when you're out of storage --- saas/app/views/account/settings/_paid_plan.html.erb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/saas/app/views/account/settings/_paid_plan.html.erb b/saas/app/views/account/settings/_paid_plan.html.erb index 19d2e065a..6ea99a066 100644 --- a/saas/app/views/account/settings/_paid_plan.html.erb +++ b/saas/app/views/account/settings/_paid_plan.html.erb @@ -12,6 +12,8 @@

The <%= Current.account.plan.name %> plan includes <%= storage_to_human_size(Plan.paid.storage_limit) %>. Upgrade to get <%= storage_to_human_size(Plan.paid_with_extra_storage.storage_limit) %> extra storage for <%= format_currency(Plan.paid_with_extra_storage.price - Plan.paid.price) %>/month more.

+ + <%= button_to "Upgrade to #{Plan.paid_with_extra_storage.name} for #{ number_to_currency(Plan.paid_with_extra_storage.price, strip_insignificant_zeros: true) }/month", account_subscription_upgrade_path, class: "btn settings-subscription__button txt-medium", form: { data: { turbo: false } } %> <% end %> <% if Current.account.subscription %>