- removed free trial on annual accounts

- added setting val for google analytics experiments to be added in head
- added 14 day free trial variation to plans page
This commit is contained in:
Henry Oswald 2014-08-22 14:20:39 +01:00
parent fd8221b869
commit 6c131b1084
4 changed files with 216 additions and 9 deletions

View file

@ -19,6 +19,8 @@ module.exports = SubscriptionController =
else else
baseUrl = "" baseUrl = ""
viewName = "subscriptions/plans" viewName = "subscriptions/plans"
if req.query.v?
viewName = "#{viewName}_#{req.query.v}"
logger.log viewName:viewName, "showing plans page" logger.log viewName:viewName, "showing plans page"
res.render viewName, res.render viewName,
title: "plans_and_pricing" title: "plans_and_pricing"

View file

@ -3,6 +3,10 @@ html(itemscope, itemtype='http://schema.org/Product')
block vars block vars
head head
-if (typeof(settings.gaExperiments) != "undefined")
script. !{settings.gaExperiments}
-if (typeof(title) == "undefined") -if (typeof(title) == "undefined")
title ShareLaTeX, the Online LaTeX Editor title ShareLaTeX, the Online LaTeX Editor
-else -else

View file

@ -7,8 +7,7 @@ block content
.row .row
.col-md-12 .col-md-12
.page-header.centered.plans-header.text-centered .page-header.centered.plans-header.text-centered
h1 #{translate("start_30_day_trial")} h1 #{translate("start_x_day_trial", {len:30})}
.row .row
.col-md-8.col-md-offset-2 .col-md-8.col-md-offset-2
p.text-centered #{translate("sl_benefits_plans")} p.text-centered #{translate("sl_benefits_plans")}
@ -64,8 +63,10 @@ block content
li li
br br
a.btn.btn-info( a.btn.btn-info(
ng-href="#{baseUrl}/user/subscription/new?planCode=collaborator{{ ui.view == 'annual' && '-annual' || ''}}_free_trial", ng-click="signUpNowClicked('collaborator')" ng-href="#{baseUrl}/user/subscription/new?planCode=collaborator{{ ui.view == 'annual' && '-annual' || '_free_trial'}}", ng-click="signUpNowClicked('collaborator')"
) #{translate("start_free_trial")} )
span(ng-show="ui.view != 'annual'") #{translate("start_free_trial")}
span(ng-show="ui.view == 'annual'") #{translate("buy_now")}
.card .card
.card-header .card-header
h2 #{translate("professional")} h2 #{translate("professional")}
@ -84,8 +85,10 @@ block content
li li
br br
a.btn.btn-info( a.btn.btn-info(
ng-href="#{baseUrl}/user/subscription/new?planCode=professional{{ ui.view == 'annual' && '-annual' || ''}}_free_trial", ng-click="signUpNowClicked('professional')" ng-href="#{baseUrl}/user/subscription/new?planCode=professional{{ ui.view == 'annual' && '-annual' || '_free_trial'}}", ng-click="signUpNowClicked('professional')"
) #{translate("start_free_trial")} )
span(ng-show="ui.view != 'annual'") #{translate("start_free_trial")}
span(ng-show="ui.view == 'annual'") #{translate("buy_now")}
.card-group.text-centered(ng-if="ui.view == 'student'") .card-group.text-centered(ng-if="ui.view == 'student'")
.card .card
@ -131,11 +134,11 @@ block content
li li
br br
a.btn.btn-info( a.btn.btn-info(
ng-href="#{baseUrl}/user/subscription/new?planCode=stud-ann_free_trial", ng-click="signUpNowClicked('student')" ng-href="#{baseUrl}/user/subscription/new?planCode=student-annual", ng-click="signUpNowClicked('student')"
) #{translate("start_free_trial")} ) #{translate("buy_now")}
.row(ng-cloak) .row(ng-cloak)
p.text-centered #{translate("start_free_trial")} #{translate("choose_plan_works_for_you")} p.text-centered #{translate("choose_plan_works_for_you", {len:14})}
.row(ng-cloak) .row(ng-cloak)
.col-md-8.col-md-offset-2 .col-md-8.col-md-offset-2

View file

@ -0,0 +1,198 @@
extends ../layout
block content
.content-alt
.content.plans(ng-controller="PlansController")
.container
.row
.col-md-12
.page-header.centered.plans-header.text-centered
h1 #{translate("start_x_day_trial", {len:14})}
.row
.col-md-8.col-md-offset-2
p.text-centered #{translate("sl_benefits_plans")}
.row(ng-cloak)
.col-md-12
ul.nav.nav-pills
li(ng-class="{'active': ui.view == 'monthly'}")
a(
href,
ng-click="switchToMonthly()"
) #{translate("monthly")}
li(ng-class="{'active': ui.view == 'annual'}")
a(
href
ng-click="switchToAnnual()"
) #{translate("annual")}
li(ng-class="{'active': ui.view == 'student'}")
a(
href,
ng-click="switchToStudent()"
) #{translate("half_price_student")}
.row(ng-cloak)
.col-md-12
.card-group.text-centered(ng-if="ui.view == 'monthly' || ui.view == 'annual'")
.card
.card-header
h2 #{translate("personal")}
.circle #{translate("free")}
ul.list-unstyled
li #{translate("one_collaborator")}
li  
li  
li
br
a.btn.btn-info(href="/register") #{translate("sign_up_now")}
.card.highlighted
.card-header
h2 #{translate("collaborator")}
.circle
span(ng-if="ui.view == 'monthly'")
| $15
span.small /mo
span(ng-if="ui.view == 'annual'")
| $180
span.small /yr
ul.list-unstyled
li
strong #{translate("collabs_per_proj", {collabcount:10})}
li #{translate("full_doc_history")}
li #{translate("sync_to_dropbox")}
li
br
a.btn.btn-info(
ng-href="#{baseUrl}/user/subscription/new?planCode=collaborator{{ ui.view == 'annual' && '-annual' || '_free_trial_14_days'}}", ng-click="signUpNowClicked('collaborator')"
)
span(ng-show="ui.view != 'annual'") #{translate("start_free_trial")}
span(ng-show="ui.view == 'annual'") #{translate("buy_now")}
.card
.card-header
h2 #{translate("professional")}
.circle
span(ng-if="ui.view == 'monthly'")
| $30
span.small /mo
span(ng-if="ui.view == 'annual'")
| $360
span.small /yr
ul.list-unstyled
li
strong #{translate("unlimited_collabs")}
li #{translate("full_doc_history")}
li #{translate("sync_to_dropbox")}
li
br
a.btn.btn-info(
ng-href="#{baseUrl}/user/subscription/new?planCode=professional{{ ui.view == 'annual' && '-annual' || '_free_trial_14_days'}}", ng-click="signUpNowClicked('professional')"
)
span(ng-show="ui.view != 'annual'") #{translate("start_free_trial")}
span(ng-show="ui.view == 'annual'") #{translate("buy_now")}
.card-group.text-centered(ng-if="ui.view == 'student'")
.card
.card-header
h2 #{translate("personal")}
.circle #{translate("free")}
ul.list-unstyled
li #{translate("one_collaborator")}
li  
li  
li
br
a.btn.btn-info(href="/register") #{translate("sign_up_now")}
.card.highlighted
.card-header
h2 #{translate("student")}
.circle
span
| $8
span.small /mo
ul.list-unstyled
li
strong #{translate("collabs_per_proj", {collabcount:6})}
li #{translate("full_doc_history")}
li #{translate("sync_to_dropbox")}
li
br
a.btn.btn-info(
ng-href="#{baseUrl}/user/subscription/new?planCode=student_free_trial_14_days", ng-click="signUpNowClicked('student')"
) #{translate("start_free_trial")}
.card
.card-header
h2 #{translate("student")} (#{translate("annual")})
.circle
span
| $80
span.small /yr
ul.list-unstyled
li
strong #{translate("collabs_per_proj", {collabcount:6})}
li #{translate("full_doc_history")}
li #{translate("sync_to_dropbox")}
li
br
a.btn.btn-info(
ng-href="#{baseUrl}/user/subscription/new?planCode=student-annual", ng-click="signUpNowClicked('student')"
) #{translate("buy_now")}
.row(ng-cloak)
p.text-centered #{translate("choose_plan_works_for_you", {len:14})}
.row(ng-cloak)
.col-md-8.col-md-offset-2
.alert.alert-info.text-centered
| #{translate("interested_in_group_licence")}
br
a(href, ng-click="openGroupPlanModal()") #{translate("get_in_touch_for_details")}
script(type="text/ng-template", id="groupPlanModalTemplate")
.modal-header
h3 #{translate("group_plan_enquiry")}
.modal-body
form(name='form1', autocomplete='off', enctype='multipart/form-data', method='post', novalidate='', action='https://sharelatex.wufoo.com/forms/z7x3p3/#public', _lpchecked='1')
.form-group
label(for='Field9') #{translate("name")}
input.form-control(name='Field9', type='text', value='', maxlength='255', tabindex='1', onkeyup='')
.form-group
label(for='Field11') #{translate("email")}
input.form-control(name='Field11', type='email', spellcheck='false', value='', maxlength='255', tabindex='2')
.form-group
label(for='Field12') #{translate("university")}
input.form-control(name='Field12', type='text', value='', maxlength='255', tabindex='3', onkeyup='')
.form-group
label(for='Field13') #{translate("position")}
input.form-control(name='Field13', type='text', value='', maxlength='255', tabindex='4', onkeyup='')
.form-group
input.btn.btn-primary.btn-large(name='saveForm', type='submit', value='Send')
div(style='display: none;')
label(for='comment') Do Not Fill This Out
textarea#comment(name='comment', rows='1', cols='1')
input#idstamp(type='hidden', name='idstamp', value='xkgLkZnS/AQW71jCS1d0XrrFjq26lJryIPVk2rx0YkU=')
.row
.col-md-12
.page-header.plans-header.plans-subheader.text-centered
h2 #{translate("enjoy_these_features")}
.col-md-4
.card.features.text-centered
i.fa.fa-file-text-o.fa-5x
h4 #{translate("unlimited_projects")}
p #{translate("create_unlimited_projects")}
.col-md-4
.card.features.text-centered
i.fa.fa-clock-o.fa-5x
h4 #{translate("full_doc_history")}
p #{translate("never_loose_work")}
.col-md-4
.card.features.text-centered
i.fa.fa-dropbox.fa-5x
h4 #{translate("sync_to_dropbox")}
p #{translate("access_projects_anywhere")}