diff --git a/app/views/subscriptions/new.html.erb b/app/views/subscriptions/new.html.erb index c128e6d5..b859c1cc 100644 --- a/app/views/subscriptions/new.html.erb +++ b/app/views/subscriptions/new.html.erb @@ -1,3 +1,5 @@ +<% free_for_life_user = current_user.selected_billing_plan_id == 2 %> +
- You're currently subscribed to Notebook's <%= @active_billing_plan.name %> plan. - <% unless @active_billing_plan.nil? || @active_billing_plan.stripe_plan_id == 'starter' %> - Your subscription will be active until <%= current_user.active_subscriptions.first.end_date.strftime('%B %d, %Y') %>, when it will automatically renew for another month. + <% if free_for_life_user %> +
+ Thank you! You were there at Notebook.ai's beginnings, so we've gifted you a free, unlimited account for life. Subscriptions below have been disabled, because you already have everything unlocked. +
++ Thank you for helping make Notebook.ai what it is today. +
+ <% else %> + You're currently subscribed to Notebook's <%= @active_billing_plan.name %> plan. + <% unless @active_billing_plan.nil? || @active_billing_plan.stripe_plan_id == 'starter' %> + Your subscription will be active until <%= current_user.active_subscriptions.first.end_date.strftime('%B %d, %Y') %>, when it will automatically renew for another month. + <% end %> <% end %> @@ -43,14 +54,14 @@ <% if @active_billing_plan.stripe_plan_id == 'early-adopters' %> <%= link_to 'Plan is active', '#', class: 'btn-large waves-effect waves-light white black-text disabled' %> <% else %> - <%= link_to 'Upgrade', change_subscription_path('early-adopters'), class: 'btn-large waves-effect waves-light blue white-text' %> + <%= link_to 'Upgrade', change_subscription_path('early-adopters'), class: "btn-large waves-effect waves-light blue white-text #{'disabled' if free_for_life_user}" %> <% end %>@@ -97,7 +108,7 @@ <% if @active_billing_plan.stripe_plan_id == 'starter' %> <%= link_to 'Plan is active', '#', class: 'btn-large waves-effect waves-light white disabled black-text' %> <% else %> - <%= link_to 'Downgrade', change_subscription_path('starter'), class: 'btn-large waves-effect waves-light white black-text' %> + <%= link_to 'Downgrade', change_subscription_path('starter'), class: "btn-large waves-effect waves-light white black-text #{'disabled' if free_for_life_user}" %> <% end %>