mirror of
https://github.com/neocities/neocities.git
synced 2025-05-13 07:57:16 +02:00
updates for paypal support
This commit is contained in:
parent
be9fe7ca12
commit
b967093ba7
7 changed files with 37 additions and 22 deletions
|
@ -105,6 +105,10 @@ def plan_pricing_button(plan_type)
|
|||
button_title = parent_site.plan_type == 'free' ? 'Upgrade' : 'Change'
|
||||
end
|
||||
|
||||
if button_title == 'Change' && parent_site && parent_site.paypal_active
|
||||
return %{<a href="/plan/paypal/cancel" onclick="return confirm('This will end your supporter plan.')" class="btn-Action">Change</a>}
|
||||
end
|
||||
|
||||
%{<a data-plan_name="#{Site::PLAN_FEATURES[plan_type.to_sym][:name]}" data-plan_type="#{plan_type}" data-plan_price="#{plan_price}" onclick="card = new Skeuocard($('#skeuocard')); return false" class="btn-Action planPricingButton">#{button_title}</a>}
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue