Files
habitica/website/views/shared/profiles/stats/mixins.jade
T
Kaitlin Hipkin 6f2767edd3 Separate stats and achievs pages (#7804)
* separate stats and achievs tabs, move 'enable class system' button to stats

* move stats layout stuff from profile.jade to stats.jade

* shuffle stats page into more columns

* separate stats and achievs in expandable navbar submenus

* add multiple options for stats.jade: col1, col2, all; fixes weirdly crowded members modal

* make stats and achievs strings consistent

* remove mobile checks in profile.jade

* fix merge issue
2016-09-12 22:04:47 -05:00

14 lines
477 B
Plaintext

mixin basicRow(label, value)
tr&attributes(attributes)
td
strong=env.t(label)
| : #{value}
mixin statList(calculatedStat, popover, text, useOneTimeBinding)
- var binding = useOneTimeBinding ? "::" : ""
li(ng-if=binding + '#{calculatedStat} > 0')
span.hint(popover-title=env.t('#{popover}'), popover-trigger='mouseenter',
popover-placement='top', popover=env.t('#{popover}Text'))
=env.t(text)
=': {{' + binding + calculatedStat + '}}'