diff --git a/services/web/app/views/project/editor/history.jade b/services/web/app/views/project/editor/history.jade index e7c7c96f63..b2bfe13045 100644 --- a/services/web/app/views/project/editor/history.jade +++ b/services/web/app/views/project/editor/history.jade @@ -2,7 +2,7 @@ div#history(ng-show="ui.view == 'history'") span(ng-controller="HistoryPremiumPopup") .upgrade-prompt(ng-show="!project.features.versioning") - div(sixpack-switch="teaser-track-changes") + div(sixpack-switch="teaser-history") .message( sixpack-default ng-show="project.owner._id == user.id" @@ -46,7 +46,7 @@ div#history(ng-show="ui.view == 'history'") ) header.message-header h3 History - + .message-body h4.teaser-title See who changed what. Go back to previous versions. img.teaser-img( diff --git a/services/web/public/coffee/ide/pdf/controllers/PdfController.coffee b/services/web/public/coffee/ide/pdf/controllers/PdfController.coffee index 790f2384a1..7e44b8f2b0 100644 --- a/services/web/public/coffee/ide/pdf/controllers/PdfController.coffee +++ b/services/web/public/coffee/ide/pdf/controllers/PdfController.coffee @@ -467,7 +467,17 @@ define [ $scope.startFreeTrial = (source) -> ga?('send', 'event', 'subscription-funnel', 'compile-timeout', source) - event_tracking.sendMB "subscription-start-trial", { source } + switch source + when "dropbox" + sixpack.participate 'teaser-dropbox-text', ['default', 'dropbox-focused'], (variant) -> + event_tracking.sendMB "subscription-start-trial", { source, variant } + + when "history" + sixpack.participate 'teaser-history', ['default', 'focused'], (variant) -> + event_tracking.sendMB "subscription-start-trial", { source, variant } + + else + event_tracking.sendMB "subscription-start-trial", { source } window.open("/user/subscription/new?planCode=student_free_trial_7_days") $scope.startedFreeTrial = true