diff options
| author | Martin Trigaux <mat@openerp.com> | 2013-03-21 17:48:02 +0100 |
|---|---|---|
| committer | Martin Trigaux <mat@openerp.com> | 2013-03-21 17:48:02 +0100 |
| commit | c4f2c671839c5d1d5b2922724c01d5d170aa0639 (patch) | |
| tree | ec6171e5cc36c692c33a8760dde90bcbc01d72a7 /addons/gamification/static/src/xml/gamification.xml | |
| parent | 7550bb17984be2f7f48de200a6abcb996384700a (diff) | |
[IMP] goal look based on state
bzr revid: mat@openerp.com-20130321164802-qzndxa29utwxtdoh
Diffstat (limited to 'addons/gamification/static/src/xml/gamification.xml')
| -rw-r--r-- | addons/gamification/static/src/xml/gamification.xml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/addons/gamification/static/src/xml/gamification.xml b/addons/gamification/static/src/xml/gamification.xml index 6ee32e0c9e2..2b3934d1181 100644 --- a/addons/gamification/static/src/xml/gamification.xml +++ b/addons/gamification/static/src/xml/gamification.xml @@ -13,7 +13,9 @@ <h3><t t-esc="plan.name"/></h3> <ul class="oe_goals_list"> <li t-foreach="plan.goals" t-as="goal"> - <strong><t t-esc="goal.type_name" /></strong> + <strong t-attf-class="#{goal.state == 'reached' ? 'oe_goal_reached' : goal.state == 'failed' ? 'oe_goal_failed' : ''}"> + <t t-esc="goal.type_name" /> + </strong> <t t-if="goal.type_description"> <p><t t-esc="goal.type_description" /></p> </t> |
