summaryrefslogtreecommitdiff
path: root/addons/website_slides/static/src/xml
diff options
context:
space:
mode:
authorqmo-odoo <qmo@odoo.com>2019-05-06 05:45:42 +0000
committerqmo-odoo <qmo@odoo.com>2019-05-06 06:02:07 +0000
commitb0aa580c059744ef7836ff4146e584891dbec4e2 (patch)
tree89019ecb5b83109a08bcc2e9ee09e84715d0e0a2 /addons/website_slides/static/src/xml
parent078fdb10645a6ad6f7410c3e632c4e35c3cbeb35 (diff)
[FIX] website_slides: Fix displayed rewards on quiz
This commit fixes the amount of point gained in a quiz. The amount of point displayed on the quiz was the number you would gain on the next attempt instead of the actual amount you gained when passing it. This was due to the usage of the wrong variable. Task: #1947884 PR: #32083
Diffstat (limited to 'addons/website_slides/static/src/xml')
-rw-r--r--addons/website_slides/static/src/xml/slide_quiz.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/website_slides/static/src/xml/slide_quiz.xml b/addons/website_slides/static/src/xml/slide_quiz.xml
index ef884ab2007..0f1f3626c7e 100644
--- a/addons/website_slides/static/src/xml/slide_quiz.xml
+++ b/addons/website_slides/static/src/xml/slide_quiz.xml
@@ -60,7 +60,7 @@
<b t-else="" class="my-0 h5">Done !</b>
<span class="my-0 h5" style="line-height: 1">
<span role="button" title="Succeed and gain karma" aria-label="Succeed and gain karma" class="badge badge-pill badge-warning text-white font-weight-bold ml-3 px-2">
- + <t t-esc="widget.quiz.quizKarmaGain"/> XP
+ + <t t-if="! widget.slide.completed" t-esc="widget.quiz.quizKarmaGain"/><t t-else="" t-esc="widget.quiz.quizKarmaWon"/> XP
</span>
</span>
</div>