<% free_for_life_user = current_user.selected_billing_plan_id == 2 %> <% on_premium_plan = ['early-adopters', 'premium', 'premium-trio', 'premium-annual'].include?(@active_billing_plan.try(:stripe_plan_id)) %> <% active_stripe_plan = @active_billing_plan.try(:stripe_plan_id) %> <%= content_for :full_width_page_header do %>

<% Rails.application.config.content_types[:all_non_universe].each do |content_class| %> <% can_create = current_user.can_create?(content_class) || PermissionService.user_has_active_promotion_for_this_content_type(user: current_user, content_type: content_class.name) %> <% edit_message = current_user.send(content_class.name.pluralize.downcase).any? && !can_create %> <%= content_class.icon %> <% end %>

<% end %> <%= render partial: 'notice_dismissal/messages/06' %>

Subscription Plan

<% if free_for_life_user %>

Thank you! You were there at Notebook.ai's beginnings, so we've gifted you a free, unlimited account for life. Subscriptions below have been disabled, because you already have everything unlocked.

Thank you for helping make Notebook.ai what it is today.

<% elsif @active_promotions.any? %>

You're currently subscribed to Notebook.ai's <%= @active_billing_plan.name %> plan, but have access to Premium features through your active Premium Code (<%= @active_promo_code.description %>) for <%= distance_of_time_in_words DateTime.current, @active_promotions.first.expires_at %> longer.

<% else %> You're currently subscribed to Notebook's <%= @active_billing_plan.name %> plan. <% unless @active_billing_plan.nil? || @active_billing_plan.stripe_plan_id == 'starter' %> <% renewal_day = current_user.active_subscriptions.first.start_date.day %> While active, your subscription will automatically renew. <% if active_stripe_plan == 'premium' %> You will be charged <%= number_to_currency(@active_billing_plan.monthly_cents / 100) %> on the <%= renewal_day %><%= renewal_day.ordinal %> of each month. <% end %> Click <%= link_to 'here', billing_faq_path %> to view our cancellation policy and other frequently-asked questions. <% end %> <% end %>

class Starter

$0/month

  • check Plan up to 5 universes
  • check Upload 50MB of images
  • check Create core page types
  • <%= Universe.icon %> <% (Rails.application.config.content_types[:free]).each do |content_class| %> <% next if content_class.name == "Universe" %> <%= content_class.icon %> <% end %>


<% if @active_billing_plan.stripe_plan_id == 'starter' %> <%= link_to 'Plan is active', '#', class: 'btn-large waves-effect waves-light white disabled black-text' %> <% else %> <%= link_to 'Downgrade', change_subscription_path('starter'), class: "btn-large waves-effect waves-light white black-text #{'disabled' if free_for_life_user}" %> <% end %>

grade Premium

$9/month
billed monthly
  • check Plan unlimited universes
  • check Upload 10GB of images
  • check Create all <%= Rails.application.config.content_types[:all].count %> page types
  • <% Rails.application.config.content_types[:all].each_with_index do |content_class, i| %> <%= '
    '.html_safe if i % 4 == 0 && i != 0 %> <%= content_class.icon %> <% end %>
<% if active_stripe_plan == 'premium' %> <%= link_to 'Plan is active', '#', class: 'btn-large waves-effect waves-light white black-text disabled' %> <% elsif on_premium_plan %> <%= link_to 'Change Plan', change_subscription_path('premium'), class: "btn-large waves-effect waves-light white blue-text #{'disabled' if free_for_life_user}" %> <% elsif @active_promotions.any? %> <%= link_to 'Premium is active', '#', class: 'btn-large waves-effect waves-light white black-text disabled' %> <% else %> <%= link_to 'Upgrade', change_subscription_path('premium'), class: "btn-large waves-effect waves-light blue white-text #{'disabled' if free_for_life_user}" %> <% end %>

grade Premium

$8/month
billed every 3 months
  • check Plan unlimited universes
  • check Upload 10GB of images
  • check Create all <%= Rails.application.config.content_types[:all].count %> page types
  • <% Rails.application.config.content_types[:all].each_with_index do |content_class, i| %> <%= '
    '.html_safe if i % 4 == 0 && i != 0 %> <%= content_class.icon %> <% end %>
<% if active_stripe_plan == 'premium-trio' %> <%= link_to 'Plan is active', '#', class: 'btn-large waves-effect waves-light white black-text disabled' %> <% elsif on_premium_plan %> <%= link_to 'Change Plan', change_subscription_path('premium-trio'), class: "btn-large waves-effect waves-light white blue-text #{'disabled' if free_for_life_user}" %> <% elsif @active_promotions.any? %> <%= link_to 'Premium is active', '#', class: 'btn-large waves-effect waves-light white black-text disabled' %> <% else %> <%= link_to 'Upgrade', change_subscription_path('premium-trio'), class: "btn-large waves-effect waves-light blue white-text #{'disabled' if free_for_life_user}" %> <% end %>

grade Premium

$7/month
billed annually
  • check Plan unlimited universes
  • check Upload 10GB of images
  • check Create all <%= Rails.application.config.content_types[:all].count %> page types
  • <% Rails.application.config.content_types[:all].each_with_index do |content_class, i| %> <%= '
    '.html_safe if i % 4 == 0 && i != 0 %> <%= content_class.icon %> <% end %>
<% if active_stripe_plan == 'premium-annual' %> <%= link_to 'Plan is active', '#', class: 'btn-large waves-effect waves-light white black-text disabled' %> <% elsif on_premium_plan %> <%= link_to 'Change Plan', change_subscription_path('premium-annual'), class: "btn-large waves-effect waves-light white blue-text #{'disabled' if free_for_life_user}" %> <% elsif @active_promotions.any? %> <%= link_to 'Premium is active', '#', class: 'btn-large waves-effect waves-light white black-text disabled' %> <% else %> <%= link_to 'Upgrade', change_subscription_path('premium-annual'), class: "btn-large waves-effect waves-light blue white-text #{'disabled' if free_for_life_user}" %> <% end %>

<% if on_premium_plan || free_for_life_user %>
Your subscription is active!

All page types are unlocked. You can turn on or off whichever ones you'd like by <%= link_to 'clicking here', customization_content_types_path %> or on the button below.


<%= link_to 'Enable premium pages', customization_content_types_path, class: 'btn btn-large blue white-text' %>

<% else %>
Choose your way to pay

The standard Premium membership is $9 per month. However, you can save more by choosing to pay every three months or once a year.

<% end %>
<%= link_to prepay_path, class: 'black-text' do %>
New: Purchase Premium with PayPal

You can now purchase Premium Codes with PayPal!


These codes let you prepay for however many months of Premium you'd like, and can be manually activated at any time. Each code can be used only once, but can be used by anyone you share the code with — so they make great gifts, too!


Click here to learn more.

<% end %>
Have a Premium Code to redeem?

Enter your promotional code below to apply its benefits to your account. Codes may only be used once per account.

<% if current_user.page_unlock_promo_codes.where('uses_remaining > 0').any? %>

Your purchased codes, available to activate:

    <% current_user.page_unlock_promo_codes.where('uses_remaining > 0').each do |code| %>
  • <%= code.code %> (<%= code.description %>)
  • <% end %>
<% end %> <%= form_for :promotional_code, url: redeem_path do |form| %>
<%= form.text_field :promo_code %>
<%= form.submit 'Redeem code', class: 'white black-text btn' %>
<% end %>
<% if current_user.active_promotions.any? %>

Your <%= pluralize current_user.active_promo_codes.count, 'active promo code' %>:

    <% current_user.active_promo_codes.each do |promo_code| %> <% promotion = Promotion.find_by(user: current_user, page_unlock_promo_code_id: promo_code.id) %>
  • <%= promo_code.code %> - <%= promo_code.description %> (active for <%= distance_of_time_in_words(DateTime.current, promotion.expires_at) %> longer)

    Pages unlocked: <% promo_code.page_types.each do |page_type| %> <% page_type_class = content_class_from_name(page_type) %> <%= link_to polymorphic_path(page_type_class) do %> <%= page_type_class.icon %> <% end %> <% end %>

  • <% end %>
<%= link_to 'Click here to turn on your new page types!', customization_content_types_path, class: 'btn blue white-text' %>

<% end %>
All prices are in US Dollars. Making payments using another currency will automatically exchange into US Dollars at the current exchange rates.