[FIX] website_slides: avoid useless "List" placeholders in website editor mode

Ensure that we don't have empty `<li>` tags which create a "List" placeholders
when the website editor is enabled on the course side menu.

Indeed, the website editor adds a placeholder and the class "oe-hint" when the
content of specific blocks is void (li, h1, h2, ...).

(See the OdooEditor.js file and the _handleCommandHint() and _makeHint()
methods for more information)

Task-2813583

closes odoo/odoo#89694

X-original-commit: d4a54fc6534788bc5276f5ea01ae5c05b527a3a7
Signed-off-by: Hennecart Jérémy (jeh) <jeh@odoo.com>
Signed-off-by: Warnon Aurélien (awa) <awa@odoo.com>
This commit is contained in:
Jérémy Hennecart (jeh)
2022-04-27 07:51:54 +02:00
parent ad48cd1de8
commit f2efa28e66
@@ -192,12 +192,12 @@
<t t-call="website_slides.join_course_link"/>
</li>
</div>
<li class="pl-4">
<a t-if="can_access and aside_slide.question_ids and aside_slide.slide_category != 'quiz'" t-att-href="'/slides/slide/%s#lessonQuiz' % (slug(aside_slide))" class="o_wslides_lesson_aside_list_link text-decoration-none small text-600">
<li t-if="aside_slide.question_ids and aside_slide.slide_category != 'quiz'" class="pl-4">
<a t-if="can_access" t-att-href="'/slides/slide/%s#lessonQuiz' % (slug(aside_slide))"
class="o_wslides_lesson_aside_list_link text-decoration-none small text-600">
<i class="fa fa-flag text-warning"/> Quiz
</a>
<span t-elif="not can_access and aside_slide.question_ids and aside_slide.slide_category != 'quiz'"
class="o_wslides_lesson_aside_list_link text-decoration-none small text-600 text-muted">
<span t-else="" class="o_wslides_lesson_aside_list_link text-decoration-none small text-600 text-muted">
<i class="fa fa-flag text-warning"/> Quiz
</span>
</li>