From e03601896aa8d47b6936cc0eaeff2ccc067a7384 Mon Sep 17 00:00:00 2001 From: evazion Date: Thu, 5 May 2022 17:19:26 -0500 Subject: [PATCH] upgrades: temporarily disable Gold account upgrades. Disable upgrades while we migrate away from Stripe. --- app/views/static/privacy_policy.html.erb | 4 +--- app/views/user_upgrades/new.html.erb | 5 ++--- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/app/views/static/privacy_policy.html.erb b/app/views/static/privacy_policy.html.erb index ce109410c..6f1e7da32 100644 --- a/app/views/static/privacy_policy.html.erb +++ b/app/views/static/privacy_policy.html.erb @@ -60,9 +60,7 @@ purchase with us. This information includes your credit card number, security code, and expiration date, your email address, your location (such as your country, your postal code, your billing address, and your - location at time of purchase), and your IP address. All payment - information is securely stored by Stripe. You may find their privacy - policy at <%= external_link_to "https://stripe.com/privacy" %>. + location at time of purchase), and your IP address.
  • diff --git a/app/views/user_upgrades/new.html.erb b/app/views/user_upgrades/new.html.erb index 8b7c4682d..cd0c0fa9c 100644 --- a/app/views/user_upgrades/new.html.erb +++ b/app/views/user_upgrades/new.html.erb @@ -1,6 +1,5 @@ <% page_title "Account Upgrade" %> <% meta_description "Upgrade to a Gold account." %> - <%= render "users/secondary_links" %> @@ -98,10 +97,10 @@ <% if @user_upgrade.purchaser.is_anonymous? %> <%= link_to "Login", login_path(url: new_user_upgrade_path), class: "login-button button-primary" %> - <%= link_to "Get #{Danbooru.config.canonical_app_name} Gold", login_path(url: new_user_upgrade_path), class: "login-button button-primary" %> + <%= button_to "Get #{Danbooru.config.canonical_app_name} Gold", nil, class: "button-primary", disabled: true %> <% elsif @recipient.level == User::Levels::MEMBER %> - <%= button_to "Get #{Danbooru.config.canonical_app_name} Gold", user_upgrades_path(user_id: @recipient.id, upgrade_type: "gold", country: params[:country], promo: params[:promo]), class: "button-primary", remote: true, disable_with: "Redirecting..." %> + <%= button_to "Get #{Danbooru.config.canonical_app_name} Gold", nil, class: "button-primary", disabled: true %> <% else %> <%= button_to "Get #{Danbooru.config.canonical_app_name} Gold", nil, class: "button-primary", disabled: true %>