From e7307681d3b6da86bf43245638e135d4b7a48f8f Mon Sep 17 00:00:00 2001 From: Marcelo Sizer Date: Tue, 14 Jan 2014 16:19:37 -0200 Subject: [PATCH] Replace old code --- views/shared/profiles/stats.jade | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/views/shared/profiles/stats.jade b/views/shared/profiles/stats.jade index 83a78ef8bc..cd787cf93d 100644 --- a/views/shared/profiles/stats.jade +++ b/views/shared/profiles/stats.jade @@ -17,9 +17,10 @@ table.table.table-striped strong=env.t('experience') | : {{profile.stats.exp | number:0}} / {{Shared.tnl(profile.stats.lvl)}} -h4.stats-equipment=env.t('equipment') -table.table.table-striped - tr(ng-repeat='(k,v) in user.items.gear.equipped', ng-init='piece=Content.gear.flat[v]', ng-show='piece') +h4.stats-equipment(ng-show='user.flags.itemsEnabled')=env.t('equipment') +table.table.table-striped(ng-show='user.flags.itemsEnabled') + // FIXME this isn't refreshing properly. On first party modal, correct. Second party modal click gives the previous gear. It's always one behind. + tr(ng-repeat='(k,v) in profile.items.gear.equipped', ng-init='piece=Content.gear.flat[v]', ng-show='piece') td strong {{piece.text}}:  span(ng-repeat='stat in ["str","con","per","int"]', ng-show='piece[stat]') {{piece[stat]}} {{stat.toUpperCase()}}