% 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 %>
<% end %> <%= render partial: 'notice_dismissal/messages/06' %><% 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 %>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 %>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 %>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.
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:
Your <%= pluralize current_user.active_promo_codes.count, 'active promo code' %>:
<%= 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 %>