mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 15:17:25 +01:00
feat(party): Conclude invite experiment
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user