From e8e81de8a92bea5f6600a93aad45a1383c84dd11 Mon Sep 17 00:00:00 2001 From: Andrew Brown Date: Fri, 28 Aug 2020 13:05:38 -0700 Subject: [PATCH] clean up billing page --- app/controllers/subscriptions_controller.rb | 3 --- app/views/subscriptions/new.html.erb | 28 +-------------------- config/routes.rb | 3 ++- 3 files changed, 3 insertions(+), 31 deletions(-) diff --git a/app/controllers/subscriptions_controller.rb b/app/controllers/subscriptions_controller.rb index fd18d658..2e22cb58 100644 --- a/app/controllers/subscriptions_controller.rb +++ b/app/controllers/subscriptions_controller.rb @@ -286,9 +286,6 @@ class SubscriptionsController < ApplicationController }, { label: "Billing history", href: main_app.billing_history_path - }, { - label: "Referrals", - href: main_app.referrals_path }] end end diff --git a/app/views/subscriptions/new.html.erb b/app/views/subscriptions/new.html.erb index 49f7acc4..459c4150 100644 --- a/app/views/subscriptions/new.html.erb +++ b/app/views/subscriptions/new.html.erb @@ -239,8 +239,7 @@ -
-
+
@@ -363,31 +362,6 @@
-
-
-
-
-
- Upload Bandwidth -
- <%= (current_user.upload_bandwidth_kb) > 0 ? Filesize.from("#{current_user.upload_bandwidth_kb}KB").pretty : '-' + Filesize.from("#{current_user.upload_bandwidth_kb.abs}KB").pretty %> remaining -
-
-

- You have <%= (current_user.upload_bandwidth_kb) > 0 ? Filesize.from("#{current_user.upload_bandwidth_kb}KB").pretty : '-' + Filesize.from("#{current_user.upload_bandwidth_kb.abs}KB").pretty %> of bandwidth remaining. -

-

- This bandwidth can be used to upload images to your content anywhere on the site. Deleting an uploaded image frees - up the same amount of bandwidth. - <% unless on_premium_plan %> - To get more bandwidth, upgrade to our Premium plan. - <% end %> -

-
-
-
-
-
All prices are in US Dollars. Making payments using another currency will automatically exchange into US Dollars at the current exchange rates.
\ No newline at end of file diff --git a/config/routes.rb b/config/routes.rb index 4852c61f..ce2c9c73 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -86,12 +86,13 @@ Rails.application.routes.draw do # Legacy route: left intact so /my/documents/X URLs continue to work for everyone's bookmarks resources :documents + get '/referrals', to: 'subscriptions#referrals', as: :referrals + # Billing scope '/billing' do #get '/', to: 'subscriptions#show', as: :billing get '/subscription', to: 'subscriptions#new', as: :subscription get '/history', to: 'subscriptions#history', as: :billing_history - get '/referrals', to: 'subscriptions#referrals', as: :referrals get '/to/:stripe_plan_id', to: 'subscriptions#change', as: :change_subscription