diff --git a/views/options/profile.jade b/views/options/profile.jade index 2ecc1101e7..20a82d9f20 100644 --- a/views/options/profile.jade +++ b/views/options/profile.jade @@ -7,7 +7,7 @@ mixin gemCost(cost) // Make it a mixin so we can call it from mobile mixin customizeProfile(mobile) - div(class=mobile ? 'padding' : 'row') + div(class=mobile ? 'padding' : 'container-fluid row') .col-md-4 h3(class=mobile?'item item-divider':'')=env.t('bodyBody') @@ -236,16 +236,15 @@ script(id='partials/options.profile.profile.html', type='text/ng-template') script(type='text/ng-template', id='partials/options.profile.backgrounds.html') .container-fluid - .row - menu(type='list') - each bgs,k in env.Content.backgrounds - li.customize-menu - menu(label=env.t(k)) - +gemCost(7) - //-button.btn.btn-xs(ng-hide="ownsSet('background',Content.backgrounds['#{k}'])",ng-click="unlock(setKeys('background',Content.backgrounds['#{k}']))")!= env.t('unlockSet',{cost:15}) + ' ' - button.btn.btn-xs(ng-hide="ownsSet('background',#{JSON.stringify(bgs)})",ng-click="unlock(setKeys('background',#{JSON.stringify(bgs)}))")!= env.t('unlockSet',{cost:15}) + ' ' - each bg,k in bgs - button.customize-option(type='button',class='background_#{k}',ng-click='unlock("background.#{k}")',popover-title=bg.text(),popover=bg.notes(),popover-trigger='mouseenter') + menu(type='list') + each bgs,k in env.Content.backgrounds + li.customize-menu + menu(label=env.t(k)) + +gemCost(7) + //-button.btn.btn-xs(ng-hide="ownsSet('background',Content.backgrounds['#{k}'])",ng-click="unlock(setKeys('background',Content.backgrounds['#{k}']))")!= env.t('unlockSet',{cost:15}) + ' ' + button.btn.btn-xs(ng-hide="ownsSet('background',#{JSON.stringify(bgs)})",ng-click="unlock(setKeys('background',#{JSON.stringify(bgs)}))")!= env.t('unlockSet',{cost:15}) + ' ' + each bg,k in bgs + button.customize-option(type='button',class='background_#{k}',ng-click='unlock("background.#{k}")',popover-title=bg.text(),popover=bg.notes(),popover-trigger='mouseenter') script(id='partials/options.profile.html', type="text/ng-template") ul.options-menu