Add costume section to member modal

This commit is contained in:
MathWhiz
2016-07-17 21:42:43 -05:00
committed by GitHub
parent c2fcbb3474
commit cc4cd30e10
2 changed files with 13 additions and 17 deletions
@@ -1,7 +1,5 @@
unless mobile
h4(class=mobile?'item item-divider':'',
ng-show='profile.preferences.costume && user._id != profile._id')=env.t('costume')
table.table.table-striped(ng-show='profile.preferences.costume && user._id != profile._id')
tr(ng-repeat='(itemType,gear) in profile.items.gear.costume', ng-init='piece=Content.gear.flat[gear]', ng-show='piece')
td
strong {{piece.text()}}
h4(ng-show='profile.preferences.costume')=env.t('costume')
table.table.table-striped(ng-show='profile.preferences.costume')
tr(ng-repeat='(itemType,costume) in profile.items.gear.costume', ng-init='piece=Content.gear.flat[costume]', ng-show='piece')
td
strong {{piece.text()}}
@@ -1,10 +1,8 @@
unless mobile
h4.stats-equipment(class=mobile?'item item-divider':'',
ng-show='user.flags.itemsEnabled')=env.t('battleGear')
table.table.table-striped(ng-show='user.flags.itemsEnabled')
tr(ng-repeat='(itemType,gear) in profile.items.gear.equipped',
ng-init='piece=Content.gear.flat[gear]', ng-show='piece')
td
strong {{piece.text()}}
strong(ng-show='piece.str || piece.con || piece.per || piece.int') : 
span(ng-repeat='stat in ["str","con","per","int"]', ng-show='piece[stat]') {{piece[stat]}} {{env.t(stat)}} 
h4.stats-equipment(ng-show='user.flags.itemsEnabled')=env.t('battleGear')
table.table.table-striped(ng-show='user.flags.itemsEnabled')
tr(ng-repeat='(itemType,gear) in profile.items.gear.equipped',
ng-init='piece=Content.gear.flat[gear]', ng-show='piece')
td
strong {{piece.text()}}
strong(ng-show='piece.str || piece.con || piece.per || piece.int') : 
span(ng-repeat='stat in ["str","con","per","int"]', ng-show='piece[stat]') {{piece[stat]}} {{env.t(stat)}}