From d5ac31b5574200877d4cae7660b2beedb19a4952 Mon Sep 17 00:00:00 2001 From: Lisa P Date: Mon, 9 Nov 2015 19:51:32 +0100 Subject: [PATCH] redirect plans page to landing age if on .org --- app/router.coffee | 5 +++-- app/routes/plans.coffee | 10 +++++++++ app/templates/{pricing.hbs => plans.hbs} | 0 app/views/{pricing.coffee => plans.coffee} | 0 public/images/pro-landing/flag-russia.svg | 25 ++++++++++++++++++++++ 5 files changed, 38 insertions(+), 2 deletions(-) create mode 100644 app/routes/plans.coffee rename app/templates/{pricing.hbs => plans.hbs} (100%) rename app/views/{pricing.coffee => plans.coffee} (100%) create mode 100644 public/images/pro-landing/flag-russia.svg diff --git a/app/router.coffee b/app/router.coffee index 1b673699..3ba758b5 100644 --- a/app/router.coffee +++ b/app/router.coffee @@ -67,8 +67,9 @@ Router.map -> @route 'home' @route 'home-pro', path: '/home-pro' - @route 'pricing', path: '/plans' - @route 'team', path: '/about/team' + @route 'plans', path: '/plans' + @route 'team', path: '/team' + @route 'logos', path: '/logo' @resource 'profile', path: '/profile', -> @resource 'accounts', path: '/', -> diff --git a/app/routes/plans.coffee b/app/routes/plans.coffee new file mode 100644 index 00000000..b86f0df1 --- /dev/null +++ b/app/routes/plans.coffee @@ -0,0 +1,10 @@ +`import BasicRoute from 'travis/routes/basic'` +`import config from 'travis/config/environment'` + +Route = BasicRoute.extend + needsAuth: false + redirect: -> + unless config.pro + @transitionTo('home-pro') + +`export default Route` diff --git a/app/templates/pricing.hbs b/app/templates/plans.hbs similarity index 100% rename from app/templates/pricing.hbs rename to app/templates/plans.hbs diff --git a/app/views/pricing.coffee b/app/views/plans.coffee similarity index 100% rename from app/views/pricing.coffee rename to app/views/plans.coffee diff --git a/public/images/pro-landing/flag-russia.svg b/public/images/pro-landing/flag-russia.svg new file mode 100644 index 00000000..07afdb02 --- /dev/null +++ b/public/images/pro-landing/flag-russia.svg @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + +