Skip to content
Snippets Groups Projects
Commit a515e21b authored by David Beguin's avatar David Beguin
Browse files

[FIX] website_profile : set badge image instead of badge level icon in badge page


Set badge image if any instead of forcing badge level icon in badge page.
If badge has no image, use the badge level icon. And if no badge level, show default placeholder icon.

Task ID: 1961700
PR #32255

Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
parent 0a76be74
Branches
Tags
No related merge requests found
......@@ -416,7 +416,9 @@
<table class="table table-sm mb64">
<tr t-foreach="badges" t-as="badge">
<td class="align-middle">
<img t-attf-src="/website_profile/static/src/img/badge_#{badge.level}.svg" class="my-1" style="height:2.5em" t-att-alt="badge.level"/>
<img t-if="not badge.image and badge.level" t-attf-src="/website_profile/static/src/img/badge_#{badge.level}.svg"
class="my-1" style="height:2.5em" t-att-alt="badge.name"/>
<img t-else="" t-attf-src="/web/image/gamification.badge/#{badge.id}/image" class="my-1" style="height:2.5em" t-att-alt="badge.name"/>
<h6 t-field="badge.name" class="d-inline my-0"/>
</td>
<td class="align-middle d-none d-md-table-cell">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment