mirror of
https://github.com/indentlabs/notebook.git
synced 2025-10-26 11:19:22 +00:00
Make everything free
This commit is contained in:
parent
0c32e2b59b
commit
baf7d2795d
@ -1,5 +1,6 @@
|
||||
class CollectiveContentAuthorizer < ContentAuthorizer
|
||||
def self.creatable_by? user
|
||||
return true
|
||||
[
|
||||
PermissionService.billing_plan_allows_collective_content?(user: user),
|
||||
PermissionService.user_can_collaborate_in_universe_that_allows_collective_content?(user: user)
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
class CoreContentAuthorizer < ContentAuthorizer
|
||||
def self.creatable_by? user
|
||||
return true
|
||||
[
|
||||
PermissionService.billing_plan_allows_core_content?(user: user)
|
||||
].any?
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
class ExtendedContentAuthorizer < ContentAuthorizer
|
||||
def self.creatable_by? user
|
||||
return true
|
||||
[
|
||||
PermissionService.billing_plan_allows_extended_content?(user: user),
|
||||
PermissionService.user_can_collaborate_in_universe_that_allows_extended_content?(user: user)
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
class UniverseCoreContentAuthorizer < CoreContentAuthorizer
|
||||
def self.creatable_by? user
|
||||
return true
|
||||
[
|
||||
PermissionService.user_has_fewer_owned_universes_than_plan_limit?(user: user),
|
||||
PermissionService.user_is_on_premium_plan?(user: user)
|
||||
|
||||
@ -16,6 +16,7 @@ class User < ActiveRecord::Base
|
||||
has_many :subscriptions
|
||||
has_many :billing_plans, through: :subscriptions
|
||||
def on_premium_plan?
|
||||
return true
|
||||
BillingPlan::PREMIUM_IDS.include?(self.selected_billing_plan_id)
|
||||
end
|
||||
|
||||
|
||||
@ -83,3 +83,20 @@
|
||||
</div>
|
||||
|
||||
<% end %>
|
||||
|
||||
<div class="card blue-grey lighten-1">
|
||||
<div class="card-content white-text">
|
||||
<span class="card-title">You've been upgraded to a free Premium account for the month of October!</span>
|
||||
<p>
|
||||
Notebook.ai just hit 10,000 users! To celebrate, every single user is free to create any kind of Notebook.ai page (like <%= content_type.humanize.downcase.pluralize %>!) for the entire month of October.
|
||||
</p>
|
||||
<br />
|
||||
<p>
|
||||
Whatever you create is yours forever — you'll never lose access to it, even after October.
|
||||
Get ready for National Novel Writing Month and worldbuild away!
|
||||
</p>
|
||||
</div>
|
||||
<div class="card-action">
|
||||
<a href="https://medium.com/indent-labs/notebook-ai-hits-10-000-users-in-one-year-were-all-celebrating-with-a-free-month-ed082a464baf">Read more</a>
|
||||
</div>
|
||||
</div>
|
||||
@ -14,6 +14,27 @@
|
||||
|
||||
<h4>Subscription Plan</h4>
|
||||
|
||||
<div class="card blue-grey lighten-1">
|
||||
<div class="card-content white-text">
|
||||
<span class="card-title">You've been upgraded to a free Premium account for the month of October!</span>
|
||||
<p>
|
||||
Notebook.ai just hit 10,000 users! To celebrate, every single user is free to create any kind of Notebook.ai page for the entire month of October.
|
||||
</p>
|
||||
<br />
|
||||
<p>
|
||||
Whatever you create is yours forever — you'll never lose access to it, even after October.
|
||||
Get ready for National Novel Writing Month and worldbuild away!
|
||||
</p>
|
||||
<br />
|
||||
<p>
|
||||
Users that have paid for a premium membership in October will have the full amount credited back for use on any other month they choose.
|
||||
</p>
|
||||
</div>
|
||||
<div class="card-action">
|
||||
<a href="https://medium.com/indent-labs/notebook-ai-hits-10-000-users-in-one-year-were-all-celebrating-with-a-free-month-ed082a464baf">Read more</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<p>
|
||||
<% if free_for_life_user %>
|
||||
<p style="margin-top: 20px;">
|
||||
|
||||
Loading…
Reference in New Issue
Block a user