feat(seasonal): Seasonal Shop

Initial commit of frontend for Seasonal Shop feature.
This commit is contained in:
Sabe Jones 2014-12-14 13:37:32 -06:00
parent ab7c1996b2
commit a98a685971
2 changed files with 15 additions and 0 deletions

View file

@ -18,6 +18,9 @@ script(type='text/ng-template', id='partials/options.inventory.html')
li.equipment-tab(ng-class="{ active: $state.includes('options.inventory.timetravelers') }")
a(ui-sref='options.inventory.timetravelers')
=env.t('timeTravelers')
li.equipment-tab(ng-class="{ active: $state.includes('options.inventory.seasonalshop') }")
a(ui-sref='options.inventory.seasonalshop')
=env.t('seasonalShop')
.tab-content
.tab-pane.active

View file

@ -19,6 +19,18 @@ script(type='text/ng-template', id='partials/options.inventory.equipment.html')
div(ng-repeat='item in gear[klass]')
button.customize-option(popover='{{::item.notes()}}', popover-title='{{::item.text()}}', popover-trigger='mouseenter', popover-placement='right', ng-click='user.ops.equip({params:{type:"costume", key:item.key}})', class='shop_{{::item.key}}', ng-class='{selectableInventory: user.items.gear.costume[item.type] == item.key}')
script(type='text/ng-template', id='partials/options.inventory.seasonalshop.html')
.container-fluid
.stable.row
.col-md-2
.seasonalshop_closed
.col-md-10
.popover.static-popover.fade.right.in
.arrow
h3.popover-title!=env.t('seasonalShopClosedTitle')
.popover-content
p=env.t('seasonalShopClosedText', {linkStart: "<a href=https://habitrpg.wikia.com/wiki/Community#World_Events>", linkEnd: "</a>"})
script(type='text/ng-template', id='partials/options.inventory.timetravelers.html')
.container-fluid
.stable.row(ng-if='user.purchased.plan.consecutive.trinkets <= 0')