Skip to content
Snippets Groups Projects
Commit c7cceaef authored by David Beguin's avatar David Beguin Committed by Thibault Delavallée
Browse files

[FIX] website_profile : hide badge if not website_published on user's profile page

Badges that should be displayed on user's profile page must be website
published. Badges that are website_published are typically forum badges or
others that will be configured for eLearning.

Task ID : 1941250
PR #31512
parent 31d9bbd9
No related branches found
No related tags found
No related merge requests found
......@@ -254,16 +254,18 @@
<template id="user_badges" name="User Bagdes">
<div t-if="user.badge_ids" class="row mx-n1">
<div class="col px-1 mb-2 col-xl-4" t-foreach="user.badge_ids" t-as="badge">
<div class="card">
<div class="card-body p-2 pr-3">
<div class="media align-items-center">
<img height="38" t-attf-src="/web/image/gamification.badge/#{badge.badge_id.id}/image_small" class="mr-2"/>
<div class="media-body text-nowrap">
<h6 class="my-0" t-field="badge.badge_id.name"/>
<t t-if="badge.badge_id.website_published">
<div class="card">
<div class="card-body p-2 pr-3">
<div class="media align-items-center">
<img height="38" t-attf-src="/web/image/gamification.badge/#{badge.badge_id.id}/image_small" class="mr-2"/>
<div class="media-body text-nowrap">
<h6 class="my-0" t-field="badge.badge_id.name"/>
</div>
</div>
</div>
</div>
</div>
</t>
</div>
</div>
<div class="mb-3" t-if="not user.badge_ids">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment