瀏覽代碼

set button colour to red for free trial

Henry Oswald 11 年之前
父節點
當前提交
730088b6ab

+ 0 - 8
services/web/app/views/subscriptions/new.jade

@@ -217,14 +217,6 @@ block content
 	script(type="text/javascript").
 	script(type="text/javascript").
 		ga('send', 'event', 'pageview', 'payment_form', "#{plan_code}")
 		ga('send', 'event', 'pageview', 'payment_form', "#{plan_code}")
 
 
-
-	script(type="text/javascript").
-		window.ab = [
-			{step:1, bucket:"red", testName:"button_color"},
-			{step:1, bucket:"blue", testName:"button_color"}
-		]
-
-
 mixin countries_options()
 mixin countries_options()
 	option(value='', disabled, selected) #{translate("country")}
 	option(value='', disabled, selected) #{translate("country")}
 	option(value='-') --------------
 	option(value='-') --------------

+ 0 - 3
services/web/app/views/subscriptions/successful_subscription.jade

@@ -37,7 +37,4 @@ block content
 		window.ab = [
 		window.ab = [
 			{step:1, bucket:"student_control", testName:"editor_plan"},
 			{step:1, bucket:"student_control", testName:"editor_plan"},
 			{step:1, bucket:"collab_test", testName:"editor_plan"},
 			{step:1, bucket:"collab_test", testName:"editor_plan"},
-
-			{step:2, bucket:"blue", testName:"button_color"},
-			{step:2, bucket:"red", testName:"button_color"}
 		]
 		]

+ 1 - 9
services/web/public/coffee/main/account-upgrade.coffee

@@ -3,15 +3,7 @@ define [
 ], (App) ->
 ], (App) ->
 	App.controller "FreeTrialModalController", ($scope, abTestManager)->
 	App.controller "FreeTrialModalController", ($scope, abTestManager)->
 
 
-		buttonColorBuckets = [
-			{ bucketName:"red", btnClass:"primary"}
-			{ bucketName:"blue", btnClass:"info"}
-		]
-
-		buttonColorBucket = abTestManager.getABTestBucket "button_color", buttonColorBuckets
-		abTestManager.processTestWithStep("button_color", buttonColorBucket.bucketName, 0)
-		$scope.buttonClass = "btn-#{buttonColorBucket.btnClass}"
-
+		$scope.buttonClass = "btn-primary"
 
 
 		$scope.startFreeTrial = (source) ->
 		$scope.startFreeTrial = (source) ->