From 6638b79c5e8d654734e29b7df0f92aed40712e77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Warnon?= Date: Fri, 1 Oct 2021 11:06:16 +0000 Subject: [PATCH] [IMP] website_slides: improve sharing control when slide is embedded This commit improves the sharing control when the slide is externally embedded, meaning embedded outside of the Odoo website, on a third party. Previously, there were several buttons to share (by email / social / embed), but the end result was really strange with some kind of overlay content displayed on top of the PDF viewer that was almost unreadable. Now, we simply re-use the "slide_share_modal" template to get a consistent sharing feature whether it's embedded externally or not. Side note: this removes the ability to share by email, which was not working anyway since it requires the user to be logged-in to the system, which will most likely never happen if said user is actually viewing the slide on a third party website. Task-2654009 Part-of: odoo/odoo#77736 --- .../views/website_slides_templates_lesson.xml | 2 +- .../website_slides_templates_lesson_embed.xml | 25 ++++++++----------- .../views/website_slides_templates_utils.xml | 18 ++++++++++--- 3 files changed, 25 insertions(+), 20 deletions(-) diff --git a/addons/website_slides/views/website_slides_templates_lesson.xml b/addons/website_slides/views/website_slides_templates_lesson.xml index a8fca2cf76d..883863c311a 100644 --- a/addons/website_slides/views/website_slides_templates_lesson.xml +++ b/addons/website_slides/views/website_slides_templates_lesson.xml @@ -557,7 +557,7 @@ -
+
Select page to start with
diff --git a/addons/website_slides/views/website_slides_templates_lesson_embed.xml b/addons/website_slides/views/website_slides_templates_lesson_embed.xml index 14852a4b2c0..da6d018c82b 100644 --- a/addons/website_slides/views/website_slides_templates_lesson_embed.xml +++ b/addons/website_slides/views/website_slides_templates_lesson_embed.xml @@ -28,9 +28,10 @@
@@ -42,18 +43,12 @@ t-attf-data-downloadable="#{False}" t-att-data-defaultpage="page"> - - - + + + + + +
diff --git a/addons/website_slides/views/website_slides_templates_utils.xml b/addons/website_slides/views/website_slides_templates_utils.xml index 0066097e032..885f0d9c056 100644 --- a/addons/website_slides/views/website_slides_templates_utils.xml +++ b/addons/website_slides/views/website_slides_templates_utils.xml @@ -4,9 +4,18 @@ @@ -41,11 +50,12 @@
Share on Social Networks
+