diff options
| author | Jules Laplace <jules@okfoc.us> | 2015-01-22 16:54:08 -0500 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2015-01-22 16:54:08 -0500 |
| commit | 3eee6a15ee44a75f6deedd073f60b88d342d56ef (patch) | |
| tree | 00c771870f53fd12b928a82dd4a507130ae8686d /views | |
| parent | 717e87b7422db8e1eda655fbf04e45fe5f877c9b (diff) | |
recurly links on brochure
Diffstat (limited to 'views')
| -rw-r--r-- | views/about/brochure.ejs | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/views/about/brochure.ejs b/views/about/brochure.ejs index e75f8c6..cffa51f 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 (! profile.plan_level || profile.plan_level < plan.level) { ]] + <button href="https://vvalls.recurly.com/subscribe/basic/[[- profile._id ]]/[[- profile.username ]]">Buy Now</button> + [[ } else if (profile.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 (! profile.plan_level || profile.plan_level < plan.level) { ]] + <button href="https://vvalls.recurly.com/subscribe/pro/[[- profile._id ]]/[[- profile.username ]]">Buy Now</button> + [[ } else if (profile.plan_level == plan.level) { ]] + Current Level + [[ } ]] </ul> </div> |
