Merge pull request #4299 from pollockjj/develop

Solution for: Differentiate Locked and Unlocked Backgrounds (#4261)
This commit is contained in:
Blade Barringer 2014-11-30 18:41:51 -06:00
commit 632d0fdf5d
2 changed files with 25 additions and 4 deletions

View file

@ -66,3 +66,23 @@ menu
.well.limited-edition
padding: 5px
margin: 25px 0 0
.background-unlocked
border 15px solid white
width: 170px !important
height: 177px !important
.background-locked
border 15px solid gray
width: 170px !important
height: 177px !important
.background-locked
position: relative
.background-locked i
position: absolute;
right: -13px;
bottom: -13px;
color: white;
top: auto;

View file

@ -253,7 +253,8 @@ mixin backgrounds(mobile)
//-button.btn.btn-xs(ng-hide="ownsSet('background',Content.backgrounds['#{k}'])",ng-click="unlock(setKeys('background',Content.backgrounds['#{k}']))")!= env.t('unlockSet',{cost:15}) + ' <span class="Pet_Currency_Gem1x inline-gems"/>'
button.btn.btn-xs(ng-hide="ownsSet('background',#{JSON.stringify(bgs)})",ng-click="unlock(setKeys('background',#{JSON.stringify(bgs)}))")!= env.t('unlockSet',{cost:15}) + ' <span class="Pet_Currency_Gem1x inline-gems"/>'
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')
button.customize-option(type='button', class='background_#{k}', ng-class="user.purchased.background.#{k} ? 'background-unlocked' : 'background-locked'", ng-click='unlock("background.#{k}")', popover-title=bg.text(), popover=bg.notes(),popover-trigger='mouseenter')
i.glyphicon.glyphicon-lock(ng-if="!user.purchased.background.#{k}")
- }
script(type='text/ng-template', id='partials/options.profile.backgrounds.html')