|
@@ -68,22 +68,15 @@ define [
|
|
|
$scope.user = window.user
|
|
$scope.user = window.user
|
|
|
|
|
|
|
|
|
|
|
|
|
- $scope.startTrialPlanCode = 'collaborator_free_trial_7_days'
|
|
|
|
|
$scope.shouldABTestPlans = false
|
|
$scope.shouldABTestPlans = false
|
|
|
- $scope._plansVariant = 'default'
|
|
|
|
|
if $scope.user.signUpDate >= '2011-10-18'
|
|
if $scope.user.signUpDate >= '2011-10-18'
|
|
|
$scope.shouldABTestPlans = true
|
|
$scope.shouldABTestPlans = true
|
|
|
- sixpack.participate 'plans-1610', ['default', 'heron', 'ibis'], (chosenVariation, rawResponse)->
|
|
|
|
|
- $scope._plansVariant = chosenVariation
|
|
|
|
|
- if chosenVariation in ['heron', 'ibis']
|
|
|
|
|
- $scope.startTrialPlanCode = "collaborator_#{chosenVariation}"
|
|
|
|
|
|
|
|
|
|
$scope.settings = window.userSettings
|
|
$scope.settings = window.userSettings
|
|
|
$scope.anonymous = window.anonymous
|
|
$scope.anonymous = window.anonymous
|
|
|
|
|
|
|
|
$scope.chat = {}
|
|
$scope.chat = {}
|
|
|
|
|
|
|
|
-
|
|
|
|
|
# Only run the header AB test for newly registered users.
|
|
# Only run the header AB test for newly registered users.
|
|
|
_abTestStartDate = new Date(Date.UTC(2016, 8, 28))
|
|
_abTestStartDate = new Date(Date.UTC(2016, 8, 28))
|
|
|
_userSignUpDate = new Date(window.user.signUpDate)
|
|
_userSignUpDate = new Date(window.user.signUpDate)
|