diff --git a/app/assets/stylesheets/specific/user_upgrades.scss b/app/assets/stylesheets/specific/user_upgrades.scss new file mode 100644 index 000000000..34ddc1e02 --- /dev/null +++ b/app/assets/stylesheets/specific/user_upgrades.scss @@ -0,0 +1,56 @@ +div#c-user-upgrades { + div#a-new { + max-width: 40em; + font-size: 1.2em; + + form.stripe { + display: inline; + } + + div.section { + margin-bottom: 2em; + } + + div#feature-comparison { + overflow: hidden; + margin-bottom: 1em; + + table { + width: 100%; + + colgroup { + width: 10em; + } + + colgroup#basic { + } + + colgroup#gold { + background-color: #FFF380; + } + + colgroup#platinum { + background-color: #eee; + } + + td, th { + text-align: center; + vertical-align: top; + padding: 0.5em 0; + } + + tbody { + tr:hover { + background-color: #FEF; + } + } + + p.cost-footnote { + font-size: 80%; + color: gray; + margin: 0; + } + } + } + } +} diff --git a/app/assets/stylesheets/specific/users.scss b/app/assets/stylesheets/specific/users.scss index 87b3b8533..eeea777a1 100644 --- a/app/assets/stylesheets/specific/users.scss +++ b/app/assets/stylesheets/specific/users.scss @@ -86,59 +86,4 @@ div#c-users { margin-bottom: 2em; } } - - div#a-upgrade-information { - max-width: 40em; - font-size: 1.2em; - - form.stripe { - display: inline; - } - - div.section { - margin-bottom: 2em; - } - - div#feature-comparison { - overflow: hidden; - margin-bottom: 1em; - - table { - width: 100%; - - colgroup { - width: 10em; - } - - colgroup#basic { - } - - colgroup#gold { - background-color: #FFF380; - } - - colgroup#platinum { - background-color: #eee; - } - - td, th { - text-align: center; - vertical-align: top; - padding: 0.5em 0; - } - - tbody { - tr:hover { - background-color: #FEF; - } - } - - p.cost-footnote { - font-size: 80%; - color: gray; - margin: 0; - } - } - } - } } diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index 039f2c662..d501df51f 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -1,6 +1,6 @@ class UsersController < ApplicationController respond_to :html, :xml, :json - before_filter :member_only, :only => [:edit, :update, :upgrade] + before_filter :member_only, :only => [:edit, :update] skip_before_filter :api_check def new diff --git a/app/views/user_upgrades/new.html.erb b/app/views/user_upgrades/new.html.erb index b2a7c41d1..85b4639b0 100644 --- a/app/views/user_upgrades/new.html.erb +++ b/app/views/user_upgrades/new.html.erb @@ -1,5 +1,5 @@ -
Want more searching power? Upgrade your account and become a power user of the best database of anime artwork on the internet.
- -| - | Basic | -Gold | -Platinum | -
|---|---|---|---|
| Cost | -Free | -$20 One time fee |
- $40 One time fee |
-
| Tag Limit | -2 | -6 | -12 | -
| Favorite Limit | -10,000 | -20,000 | -Unlimited | -
| Page Limit | -1,000 | -2,000 | -5,000 | -
| Saved Searches | -No | -Yes | -Yes | -
| See Censored Tags | -No | -Yes | -Yes | -
| API Hourly Limit | -3,000 | -10,000 | -20,000 | -
| Database Timeout | -3 sec | -6 sec | -9 sec | -
| Variable Posts Per Page | -No | -Yes | -Yes | -
| Name Changes | -No | -Yes | -Yes | -
Upgrading from Gold to Platinum will only cost $20. If you have any further questions or concerns, feel free to contact me at <%= mail_to Danbooru.config.contact_email, nil, :encode => :javascript %>.
- - <% if CurrentUser.user.level < User::Levels::GOLD %> - <%= stripe_button("Upgrade to Gold", 2000) %> - <%= stripe_button("Upgrade to Platinum", 4000) %> - <% elsif CurrentUser.user.level < User::Levels::PLATINUM %> - <%= stripe_button("Upgrade Gold to Platinum", 2000) %> - <% end %> -