New string in stats if gear has no benefits (take 2)

This commit is contained in:
GihHubSphinx
2015-06-28 09:23:49 +05:00
parent 44a120b577
commit fdbd18a8ed
2 changed files with 3 additions and 1 deletions

View File

@@ -151,5 +151,6 @@
"str": "STR",
"con": "CON",
"per": "PER",
"int": "INT"
"int": "INT",
"noBenefits": "No benefits"
}

View File

@@ -29,6 +29,7 @@ unless mobile
td
strong {{piece.text()}}: 
span(ng-repeat='stat in ["str","con","per","int"]', ng-show='piece[stat]') {{piece[stat]}} {{env.t(stat)}} 
span(ng-hide='piece.str || piece.con || piece.per || piece.int')=env.t('noBenefits')
h4(class=mobile?'item item-divider':'')=env.t('attributes')
table.table.table-striped