[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
This commit is contained in:
committed by
Thibault Delavallée
parent
31d9bbd904
commit
c7cceaef79
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user