2018-04-12 17:11:52 -04:00
|
|
|
//- Buy Buttons
|
|
|
|
mixin btn_buy_collaborator(location)
|
2018-08-30 14:20:58 -04:00
|
|
|
a.btn.btn-primary(
|
2018-04-12 17:11:52 -04:00
|
|
|
ng-href="/user/subscription/new?planCode={{ getCollaboratorPlanCode() }}¤cy={{currencyCode}}",
|
|
|
|
ng-click="signUpNowClicked('collaborator','" + location + "')"
|
|
|
|
)
|
|
|
|
span(ng-show="ui.view != 'annual'") #{translate("start_free_trial")}
|
|
|
|
span(ng-show="ui.view == 'annual'") #{translate("buy_now")}
|
|
|
|
mixin btn_buy_free(location)
|
2018-08-30 14:20:58 -04:00
|
|
|
a.btn.btn-primary(
|
2018-04-12 17:11:52 -04:00
|
|
|
href="/register"
|
|
|
|
style=(getLoggedInUserId() === null ? "" : "visibility: hidden")
|
|
|
|
ng-click="signUpNowClicked('free','" + location + "')"
|
|
|
|
)
|
2018-08-27 10:03:01 -04:00
|
|
|
span.text-capitalize #{translate('get_started_now')}
|
2018-04-12 17:11:52 -04:00
|
|
|
mixin btn_buy_professional(location)
|
2018-08-30 14:20:58 -04:00
|
|
|
a.btn.btn-primary(
|
2018-04-12 17:11:52 -04:00
|
|
|
ng-href="/user/subscription/new?planCode=professional{{ ui.view == 'annual' && '-annual' || planQueryString}}¤cy={{currencyCode}}"
|
|
|
|
ng-click="signUpNowClicked('professional','" + location + "')"
|
|
|
|
)
|
|
|
|
span(ng-show="ui.view != 'annual'") #{translate("start_free_trial")}
|
|
|
|
span(ng-show="ui.view == 'annual'") #{translate("buy_now")}
|
|
|
|
mixin btn_buy_student(location, plan)
|
|
|
|
if plan == 'annual'
|
2018-08-30 14:20:58 -04:00
|
|
|
a.btn.btn-primary(
|
2018-04-12 17:11:52 -04:00
|
|
|
ng-href="/user/subscription/new?planCode=student-annual¤cy={{currencyCode}}",
|
|
|
|
ng-click="signUpNowClicked('student-annual','" + location + "')"
|
|
|
|
) #{translate("buy_now")}
|
|
|
|
else
|
|
|
|
//- planQueryString will contain _free_trial_7_days
|
2018-08-30 14:20:58 -04:00
|
|
|
a.btn.btn-primary(
|
2018-04-12 17:11:52 -04:00
|
|
|
ng-href="/user/subscription/new?planCode=student{{planQueryString}}¤cy={{currencyCode}}",
|
|
|
|
ng-click="signUpNowClicked('student-monthly','" + location + "')"
|
|
|
|
) #{translate("start_free_trial")}
|
|
|
|
|
|
|
|
//- Cards
|
|
|
|
mixin card_student_annual
|
2018-08-27 10:03:01 -04:00
|
|
|
.best-value
|
2018-04-12 17:11:52 -04:00
|
|
|
strong #{translate('best_value')}
|
|
|
|
.card-header
|
|
|
|
h2 #{translate("student")} (#{translate("annual")})
|
2018-08-27 10:03:01 -04:00
|
|
|
h5.tagline #{translate('tagline_student_annual')}
|
2018-04-12 17:11:52 -04:00
|
|
|
.circle
|
|
|
|
span
|
|
|
|
+price_student_annual
|
|
|
|
+features_student('card', 'annual')
|
|
|
|
mixin card_student_monthly
|
|
|
|
.card-header
|
|
|
|
h2 #{translate("student")}
|
2018-08-27 10:03:01 -04:00
|
|
|
h5.tagline #{translate('tagline_student_monthly')}
|
2018-04-12 17:11:52 -04:00
|
|
|
.circle
|
|
|
|
span
|
|
|
|
+price_student_monthly
|
|
|
|
+features_student('card', 'monthly')
|
|
|
|
|
|
|
|
//- Features Lists
|
|
|
|
mixin features_collaborator
|
|
|
|
ul.list-unstyled
|
|
|
|
li
|
|
|
|
strong #{translate("collabs_per_proj", {collabcount:10})}
|
|
|
|
+features_premium
|
|
|
|
li
|
|
|
|
br
|
|
|
|
+btn_buy_collaborator('card')
|
|
|
|
mixin features_free
|
|
|
|
ul.list-unstyled
|
|
|
|
li #{translate("one_collaborator")}
|
|
|
|
li(class="hidden-xs hidden-sm")
|
|
|
|
li(class="hidden-xs hidden-sm")
|
|
|
|
li(class="hidden-xs hidden-sm")
|
2018-08-27 10:03:01 -04:00
|
|
|
li(class="hidden-xs hidden-sm")
|
|
|
|
li(class="hidden-xs hidden-sm")
|
|
|
|
li(class="hidden-xs hidden-sm")
|
2018-04-12 17:11:52 -04:00
|
|
|
li
|
|
|
|
br
|
|
|
|
+btn_buy_free('card')
|
|
|
|
mixin features_premium
|
2018-08-27 10:03:01 -04:00
|
|
|
li
|
|
|
|
li
|
2018-04-12 17:11:52 -04:00
|
|
|
strong #{translate('all_premium_features')}
|
2018-08-27 10:03:01 -04:00
|
|
|
li #{translate('sync_dropbox_github')}
|
|
|
|
li #{translate('full_doc_history')}
|
|
|
|
li #{translate('track_changes')}
|
|
|
|
li + #{translate('more').toLowerCase()}
|
2018-04-12 17:11:52 -04:00
|
|
|
mixin features_professional
|
|
|
|
ul.list-unstyled
|
|
|
|
li
|
|
|
|
strong #{translate("unlimited_collabs")}
|
|
|
|
+features_premium
|
|
|
|
li
|
|
|
|
br
|
|
|
|
+btn_buy_professional('card')
|
|
|
|
mixin features_student(location, plan)
|
|
|
|
ul.list-unstyled
|
|
|
|
li
|
|
|
|
strong #{translate("collabs_per_proj", {collabcount:6})}
|
|
|
|
+features_premium
|
|
|
|
li
|
|
|
|
br
|
|
|
|
+btn_buy_student(location, plan)
|
|
|
|
|
|
|
|
//- Prices
|
|
|
|
mixin price_collaborator
|
|
|
|
span(ng-if="ui.view == 'monthly'")
|
|
|
|
| {{plans[currencyCode]['collaborator']['monthly']}}
|
|
|
|
span.small /mo
|
|
|
|
span(ng-if="ui.view == 'annual'")
|
|
|
|
| {{plans[currencyCode]['collaborator']['annual']}}
|
|
|
|
span.small /yr
|
|
|
|
mixin price_professional
|
|
|
|
span(ng-if="ui.view == 'monthly'")
|
|
|
|
| {{plans[currencyCode]['professional']['monthly']}}
|
|
|
|
span.small /mo
|
|
|
|
span(ng-if="ui.view == 'annual'")
|
|
|
|
| {{plans[currencyCode]['professional']['annual']}}
|
|
|
|
span.small /yr
|
|
|
|
mixin price_student_annual
|
|
|
|
| {{plans[currencyCode]['student']['annual']}}
|
|
|
|
span.small /yr
|
|
|
|
mixin price_student_monthly
|
|
|
|
| {{plans[currencyCode]['student']['monthly']}}
|
|
|
|
span.small /mo
|
|
|
|
|
|
|
|
//- UI Control
|
|
|
|
mixin currency_dropdown
|
|
|
|
.dropdown.currency-dropdown(dropdown)
|
|
|
|
a.btn.btn-default.dropdown-toggle(
|
|
|
|
href="#",
|
|
|
|
data-toggle="dropdown",
|
|
|
|
dropdown-toggle
|
|
|
|
)
|
|
|
|
| {{currencyCode}} ({{plans[currencyCode]['symbol']}})
|
|
|
|
span.caret
|
|
|
|
|
|
|
|
ul.dropdown-menu.dropdown-menu-right.text-right(role="menu")
|
|
|
|
li(ng-repeat="(currency, value) in plans")
|
|
|
|
a(
|
|
|
|
href="#",
|
|
|
|
ng-click="changeCurreny($event, currency)"
|
|
|
|
) {{currency}} ({{value['symbol']}})
|
|
|
|
mixin plan_switch(location)
|
|
|
|
ul.nav.nav-pills
|
|
|
|
li(ng-class="{'active': ui.view == 'monthly'}")
|
2018-11-08 10:54:55 -05:00
|
|
|
a.btn.btn-default-outline(
|
2018-04-12 17:11:52 -04:00
|
|
|
href="#"
|
|
|
|
ng-click="switchToMonthly($event,'" + location + "')"
|
|
|
|
) #{translate("monthly")}
|
|
|
|
li(ng-class="{'active': ui.view == 'annual'}")
|
2018-11-08 10:54:55 -05:00
|
|
|
a.btn.btn-default-outline(
|
2018-04-12 17:11:52 -04:00
|
|
|
href="#"
|
|
|
|
ng-click="switchToAnnual($event,'" + location + "')"
|
|
|
|
) #{translate("annual")}
|
|
|
|
li(ng-class="{'active': ui.view == 'student'}")
|
2018-11-08 10:54:55 -05:00
|
|
|
a.btn.btn-default-outline(
|
2018-04-12 17:11:52 -04:00
|
|
|
href="#"
|
|
|
|
ng-click="switchToStudent($event,'" + location + "')"
|
|
|
|
) #{translate("half_price_student")}
|