diff options
| author | Jules Laplace <jules@okfoc.us> | 2015-01-07 14:34:41 -0500 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2015-01-07 14:40:10 -0500 |
| commit | 9c6f8f8568d20d75eb22955dbf2752ea777e59f8 (patch) | |
| tree | 26a87018e7aa8794c96bd00ddfaed1472d2964b7 /server/lib | |
| parent | 2d4ed7d888727e1b973c2581b694d900e30c2ebd (diff) | |
stub in brochure page
Diffstat (limited to 'server/lib')
| -rw-r--r-- | server/lib/schemas/Plan.js | 6 | ||||
| -rw-r--r-- | server/lib/schemas/Subscription.js | 2 | ||||
| -rw-r--r-- | server/lib/views/index.js | 5 | ||||
| -rw-r--r-- | server/lib/views/subscription.js | 1 |
4 files changed, 12 insertions, 2 deletions
diff --git a/server/lib/schemas/Plan.js b/server/lib/schemas/Plan.js index 3e74997..1057bb2 100644 --- a/server/lib/schemas/Plan.js +++ b/server/lib/schemas/Plan.js @@ -13,6 +13,12 @@ var PlanSchema = new mongoose.Schema({ monthly_price: { type: Number }, yearly_price: { type: Number }, + basic_layout_monthly_price: { type: Number }, + basic_layout_yearly_price: { type: Number }, + + pro_layout_monthly_price: { type: Number }, + pro_layout_yearly_price: { type: Number }, + basic_layout_limit: { type: Number }, pro_layout_limit: { type: Number }, diff --git a/server/lib/schemas/Subscription.js b/server/lib/schemas/Subscription.js index 8d0b10e..8315009 100644 --- a/server/lib/schemas/Subscription.js +++ b/server/lib/schemas/Subscription.js @@ -15,7 +15,7 @@ var SubscriptionSchema = new mongoose.Schema({ plans: [{ tier: { type: String }, monthly: { type: Boolean }, - }] + }], created_at: { type: Date, default: Date.now }, updated_at: { type: Date, default: Date.now }, diff --git a/server/lib/views/index.js b/server/lib/views/index.js index 3326499..5f9088b 100644 --- a/server/lib/views/index.js +++ b/server/lib/views/index.js @@ -111,6 +111,11 @@ var views = module.exports = { res.render('about/' + name) return } + if (name == "brochure") { + // TODO: fetch plans + res.render('about/' + name) + return + } if (name == "about" || name == "index") { res.render('about/' + name) return diff --git a/server/lib/views/subscription.js b/server/lib/views/subscription.js index 77db1a0..ba54bb4 100644 --- a/server/lib/views/subscription.js +++ b/server/lib/views/subscription.js @@ -12,7 +12,6 @@ var subscription = module.exports = { fields: { user: "_id username displayName photo created_at updated_at last_seen created_ip last_ip", - project: "_id name slug user_id privacy created_at updated_at", }, defaults: { |
