diff --git a/app/views/static_pages/home.html.erb b/app/views/static_pages/home.html.erb index 23ba7b23..ce1e3728 100644 --- a/app/views/static_pages/home.html.erb +++ b/app/views/static_pages/home.html.erb @@ -39,7 +39,11 @@

<%= plan.headline %>

<%= plan.description %> -

<%= link_to 'Subscribe', @current_user ? new_subscription_charge_path(plan_id: plan) : login_path %>

+ <% if @current_user&.active_subscription&.plan.id == plan.id %> +

Subscribed

+ <% else %> +

<%= link_to 'Subscribe', @current_user ? new_subscription_charge_path(plan_id: plan) : login_path %>

+ <% end %> <% end %>