mirror of
https://github.com/indentlabs/notebook.git
synced 2025-10-26 11:19:22 +00:00
clean up billing page
This commit is contained in:
parent
5c688c16a6
commit
e8e81de8a9
@ -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
|
||||
|
||||
@ -239,8 +239,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col s12 m12 l3 hide-on-small-only"></div>
|
||||
<div class="col s12 m12 l9">
|
||||
<div class="col s12 m12 l9 offset-l3">
|
||||
<div class="card">
|
||||
<div class="card-content">
|
||||
|
||||
@ -363,31 +362,6 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col s12">
|
||||
<div class="card">
|
||||
<div class="card-content">
|
||||
<div class="card-title">
|
||||
Upload Bandwidth
|
||||
<div class="right">
|
||||
<%= (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
|
||||
</div>
|
||||
</div>
|
||||
<p>
|
||||
You have <strong><%= (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 %></strong> of bandwidth remaining.
|
||||
</p>
|
||||
<p>
|
||||
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 %>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="center help-text">
|
||||
All prices are in US Dollars. Making payments using another currency will automatically exchange into US Dollars at the current exchange rates.
|
||||
</div>
|
||||
@ -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
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user