Files
habitica/website/views/shared/profiles/stats/mixins.jade
T
MathWhiz e8b7660376 Add Costume Info to member modal (#7768)
* Add localization strings

* Change name of Equipment section

* Add costume section to member modal

* Add costume section to member modal

* Add current pet and current mount info

* Reorder Sections and Separate Active Mounts/Pets

* switch ng-show with ng-if

* Add `noActiveMount` to pets.json

* Breaking Stuff

* Add petservices.js to the manifest

* Remove Extra Parenthesis

* Progress towards backgrounds

* Add semicolons

* Add background information

* Add all methods in petServices to userCtrl and memberModalCtrl

* Add avatar settings

* Add semicolons

* Revert "Add avatar settings"

This reverts commit 6e8cca9736.

* Remove active-pet-and-mount

* Remove Content from memberModalCtrl

* Update costumeServices.js

* Make costumeservices.js more readable

* Update costumeServices.js

* Update costumeService logic

* Remove unused strings

* Fix include statements

* move service

* Update pet/mount logic

* fixes

* Fix background logic
2016-11-21 21:19:13 +10:00

13 lines
476 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 + '}}'