diff options
| author | Jules Laplace <jules@okfoc.us> | 2015-01-28 11:49:10 -0500 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2015-01-28 11:49:10 -0500 |
| commit | e3ff5315f7ea7421431658077253c4d71f0f5731 (patch) | |
| tree | 62a06e26c77ca9454cc0535f39da698319713eac /views/about | |
| parent | 79fee7f24d43873fc35295eab1d2a089d373e133 (diff) | |
| parent | 3059c3203d2cec4e2e745be8c21c6d3fbddb0c14 (diff) | |
Merge branch 'subscriptions' of github.com:okfocus/vvalls into subscriptions
Diffstat (limited to 'views/about')
| -rw-r--r-- | views/about/brochure.ejs | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/views/about/brochure.ejs b/views/about/brochure.ejs index e75f8c6..49b03db 100644 --- a/views/about/brochure.ejs +++ b/views/about/brochure.ejs @@ -33,8 +33,14 @@ <li> Each new floor plan can have up to [[- plans.basic.basic_project_limit ]] exhibitions <li> VValls logo appears when embedding an exhibition on a web page <li> - <!-- check current subscription plan --> - <button>Buy Now</button> + [[ if (! logged_in) { ]] + <button href="/signup">Sign Up</button> + [[ } else if (! user.plan_level || user.plan_level < plan.level) { ]] + <button href="https://vvalls.recurly.com/subscribe/basic/[[- user._id ]]/[[- user.username ]]">Buy Now</button> + [[ } else if (user.plan_level == plan.level) { ]] + Current Level + [[ } else { ]] + [[ } ]] </ul> </div> @@ -49,8 +55,13 @@ <li> Includes planning for 3D objects in the room <li> No VValls logo on embed <li> - <!-- check current subscription plan --> - <button>Buy Now</button> + [[ if (! logged_in) { ]] + <button href="/signup">Sign Up</button> + [[ } else if (! user.plan_level || user.plan_level < plan.level) { ]] + <button href="https://vvalls.recurly.com/subscribe/pro/[[- user._id ]]/[[- user.username ]]">Buy Now</button> + [[ } else if (user.plan_level == plan.level) { ]] + Current Level + [[ } ]] </ul> </div> @@ -112,6 +123,9 @@ text-align: center; margin-bottom: 10px; } +.about_plan ul { + margin-bottom: 60px; +} .planbox li { list-style-type: none; margin-bottom: 5px; |
