feat(party): Conclude invite experiment

This commit is contained in:
Sabe Jones
2015-07-16 11:22:19 -05:00
parent 695c793f6e
commit e25819f6de
2 changed files with 6 additions and 6 deletions

View File

@@ -31,13 +31,13 @@ function($scope, $rootScope, User, $http, Notification, ApiUrl) {
// Stripe
$.getScript('//checkout.stripe.com/v2/checkout.js');
// Google Content Experiments
/* Google Content Experiments
if (window.env.NODE_ENV === 'production') {
$.getScript('//www.google-analytics.com/cx/api.js?experiment=boVO4eEyRfysNE5D53nCMQ', function(){
$rootScope.variant = cxApi.chooseVariation();
$rootScope.$apply();
})
}
} */
// Scripts only for desktop
if (!window.env.IS_MOBILE) {

View File

@@ -29,12 +29,12 @@
span.meter-text.value
span
| {{Math.floor(user.stats.mp)}} / {{user._statsComputed.maxMP}}
//- party, with Google Experiment boVO4eEyRfysNE5D53nCMQ for button caption and placement
.party(ng-controller='PartyCtrl', ng-cloak)
// party
.party(ng-controller='PartyCtrl')
button.party-invite.btn.btn-primary(ng-click="inviteOrStartParty(group)",
ng-if="(!party.members || party.memberCount === 1) && user.preferences.displayInviteToPartyWhenPartyIs1",
ng-class="{'party-invite': (!variant || variant % 2 === 0), 'party-invite-middle': (variant && (variant % 2 !== 0))}"
class="party-invite-middle",
popover="{{!party.members ? env.t('startAParty') : env.t('addToParty')}}", popover-placement="left", popover-trigger="mouseenter")
span {{ variant < 2 ? env.t("battleWithFriends") : env.t("inviteFriends") }}
span=env.t("battleWithFriends")
.herobox-wrap(ng-repeat='profile in partyMinusSelf')
+herobox()