mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-16 22:27:26 +01:00
New string in stats if gear has no benefits (take 2)
This commit is contained in:
@@ -151,5 +151,6 @@
|
|||||||
"str": "STR",
|
"str": "STR",
|
||||||
"con": "CON",
|
"con": "CON",
|
||||||
"per": "PER",
|
"per": "PER",
|
||||||
"int": "INT"
|
"int": "INT",
|
||||||
|
"noBenefits": "No benefits"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -29,6 +29,7 @@ unless mobile
|
|||||||
td
|
td
|
||||||
strong {{piece.text()}}:
|
strong {{piece.text()}}:
|
||||||
span(ng-repeat='stat in ["str","con","per","int"]', ng-show='piece[stat]') {{piece[stat]}} {{env.t(stat)}}
|
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')
|
h4(class=mobile?'item item-divider':'')=env.t('attributes')
|
||||||
table.table.table-striped
|
table.table.table-striped
|
||||||
|
|||||||
Reference in New Issue
Block a user