From 8af1fe54adb54c915d282601353ddd1ac0232be2 Mon Sep 17 00:00:00 2001
From: qmo-odoo <qmo@odoo.com>
Date: Tue, 30 Apr 2019 08:13:37 +0000
Subject: [PATCH] [FIX] website_slides: Add back the slide type icons in the
 lists

This commit adds back the slide type icons on the sidebar list
in fullscreen and not fullscreen mode.

Commit linked to task ID 1978530 (fixes linked to internal testing).
---
 .../website_slides/views/website_slides_templates_lesson.xml   | 3 +++
 .../views/website_slides_templates_lesson_fullscreen.xml       | 1 +
 2 files changed, 4 insertions(+)

diff --git a/addons/website_slides/views/website_slides_templates_lesson.xml b/addons/website_slides/views/website_slides_templates_lesson.xml
index 1d89aa83bbbf..4e7bb7290b7c 100644
--- a/addons/website_slides/views/website_slides_templates_lesson.xml
+++ b/addons/website_slides/views/website_slides_templates_lesson.xml
@@ -148,6 +148,9 @@
                             </i>
                         </div>
                         <div class="o_wslides_lesson_link_name">
+                            <t t-call="website_slides.slide_icon">
+                                <t t-set="slide" t-value="aside_slide"/>
+                            </t>
                             <span t-esc="aside_slide.name" class="mr-2"/>
                         </div>
                         <div class="ml-auto" t-if="aside_slide.question_ids">
diff --git a/addons/website_slides/views/website_slides_templates_lesson_fullscreen.xml b/addons/website_slides/views/website_slides_templates_lesson_fullscreen.xml
index 6c24897cb170..5180385f1175 100644
--- a/addons/website_slides/views/website_slides_templates_lesson_fullscreen.xml
+++ b/addons/website_slides/views/website_slides_templates_lesson_fullscreen.xml
@@ -93,6 +93,7 @@
                     <div class="ml-2">
                         <a class="d-block pt-1" href="#">
                             <div class="d-flex ">
+                                <t t-call="website_slides.slide_icon"/>
                                 <div class="o_wslides_fs_slide_name" t-esc="slide.name"/>
                             </div>
                         </a>
-- 
GitLab