summaryrefslogtreecommitdiff
path: root/addons/website_profile
diff options
context:
space:
mode:
authorPatrick Hoste <pko@odoo.com>2020-05-19 14:19:16 +0000
committerThibault Delavallée <tde@odoo.com>2020-08-11 10:20:39 +0000
commiteff40d3c7ded2ef8e8930b50fa8bcd9d08b62e45 (patch)
treed368c791c7470ea1071314b83d4d35c2a954e0dc /addons/website_profile
parent414329dcf1a203e53ced2f4deabdc9e6f314dde7 (diff)
[IMP] website_profile: minor changes about karma rank display and forum questions
PURPOSE Overall improve profile related parts of eLearning user experience. SPECIFICATIONS Improve display and the text about the karma gain/rank - remove the double quotes around the rank - change the text after the xp gained in rank list - rename Monthly / Weekly gains to this month / this week Improve the margin between questions and questions categories - set same margin between questions in different categories LINKS Task ID-2241513 PR #55698
Diffstat (limited to 'addons/website_profile')
-rw-r--r--addons/website_profile/views/website_profile.xml9
1 files changed, 3 insertions, 6 deletions
diff --git a/addons/website_profile/views/website_profile.xml b/addons/website_profile/views/website_profile.xml
index 263b06496c5..0f000812091 100644
--- a/addons/website_profile/views/website_profile.xml
+++ b/addons/website_profile/views/website_profile.xml
@@ -344,13 +344,11 @@
t-att-alt="(next_rank_id.name if next_rank_id else user.rank_id.name) + ' badge'"
t-att-style="'max-width: ' + (img_max_width if img_max_width else '50%;')"/>
<h4 class=" mb-0">
- "
<span t-if="next_rank_id" t-field="next_rank_id.name"/>
<span t-else="" t-field="user.rank_id.name"/>
- "
</h4>
<small>
- <span class="font-weight-bold text-primary" t-field="user.karma"/>/
+ <span class="font-weight-bold text-primary" t-field="user.karma"/> /
<span t-if="next_rank_id" class="font-weight-bold" t-field="next_rank_id.karma_min"/>
<span t-else="" class="font-weight-bold" t-field="user.rank_id.karma_min"/>
xp
@@ -597,10 +595,9 @@
<t t-if="user['karma_gain']">
<span class="badge badge-pill badge-success d-inline">+ <t t-esc="user['karma_gain']"/> XP</span>
<span class="text-muted pl-2 pr-3">
- <t t-if="group_by == 'week'">Weekly </t>
- <t t-elif="group_by == 'month'">Monthly </t>
+ <t t-if="group_by == 'week'">this week</t>
+ <t t-elif="group_by == 'month'">this month</t>
<t t-else="">All time </t>
- gain
</span>
</t>
</td>