Files
habitica/website/views/options/profile/backgrounds.jade
T
Sabe Jones 03088f1d9f New default background (#8597)
* feat(bgs): new default background

* feat(bgs): backfill migration

* fix(migration): extraneous imports, bad paths

* fix(bgs): address comments

* fix(test): assert equality
2017-03-28 16:49:24 -05:00

14 lines
1.1 KiB
Plaintext

mixin backgrounds(mobile)
div(class=mobile ? 'padding' : 'container-fluid')
li.customize-menu(ng-repeat='set in backgroundShopSets')
menu(label='{{set.text}}')
div(ng-if='showPlainBackgroundBlurb(set.identifier, set.items)')=env.t('incentiveBackgroundsUnlockedWithCheckins')
span(ng-hide='ownsSet("background", set.items) || set.identifier === "incentiveBackgrounds"')
+gemCost(7)
button.btn.btn-xs(ng-click='unlock(setKeys("background", set.items))')!= env.t('unlockSet',{cost:15}) + ' <span class="Pet_Currency_Gem1x inline-gems"/>'
button.customize-option(ng-repeat='bg in set.items', type='button', class='background_{{bg.key}}', ng-class='user.purchased.background.{{bg.key}} ? "background-unlocked" : "background-locked"', ng-click='unlock("background." + bg.key)', popover-title='{{bg.text}}', popover='{{bg.notes}}', popover-trigger='mouseenter')
i.glyphicon.glyphicon-lock(ng-if='!user.purchased.background[bg.key]')
script(type='text/ng-template', id='partials/options.profile.backgrounds.html')
+backgrounds()