summaryrefslogtreecommitdiff
path: root/addons/website_slides/static/src/xml
diff options
context:
space:
mode:
authorDavid Beguin <dbe@odoo.com>2019-02-20 10:16:58 +0000
committerAurélien Warnon <awa@odoo.com>2019-02-21 06:57:05 +0000
commitc2629d114b409077075e2ffdcef3eb908daf6f29 (patch)
treeb548e6f79c20b5af1819e8d619fe5a1d79870d15 /addons/website_slides/static/src/xml
parent9f969fbcb0bd83e07b63799bee5219b7fd84ca4e (diff)
[FIX] website_slides: add various design and UX fixes
- slidesChannelDropdownSort : dropdown items back to visible (was white on white) - Featured lesson : change icon to bullhorn instead of + icon - Pass certification fullscreen button : btn primary - set max height to fullscreen content to 100% minus header - Fix 'infographic' slide type image view - change image for 'Furniture Technical Specifications' course - fix fullscreen presentation mode: The condition to add the iframe that contains the presentation of the document was wrong and, so, never met. Those conditions are evaluated in javascript and not in python as it's part of t-name template linked to a javascript widget. Commit linked to task ID 1941250 and PR #31279.
Diffstat (limited to 'addons/website_slides/static/src/xml')
-rw-r--r--addons/website_slides/static/src/xml/website_slides_fullscreen.xml6
1 files changed, 3 insertions, 3 deletions
diff --git a/addons/website_slides/static/src/xml/website_slides_fullscreen.xml b/addons/website_slides/static/src/xml/website_slides_fullscreen.xml
index a9aff0d2ec7..c1161a02488 100644
--- a/addons/website_slides/static/src/xml/website_slides_fullscreen.xml
+++ b/addons/website_slides/static/src/xml/website_slides_fullscreen.xml
@@ -3,11 +3,11 @@
<div t-if="slide.slide_type == 'video' &amp;&amp; !showMiniQuiz" class="player embed-responsive embed-responsive-16by9 embed-responsive-item">
<iframe id="youtube-player" t-att-src="embed_url" allowFullScreen="true" frameborder="0" enablejsapi="1" autoplay="1" allow="autoplay"></iframe>
</div>
- <div t-if="slide.slide_type in ['presentation', 'document'] &amp;&amp; !showMiniQuiz" class="embed-responsive embed-responsive-4by3 embed-responsive-item ">
+ <div t-if="['presentation', 'document'].indexOf(slide.slide_type) !== -1 &amp;&amp; !showMiniQuiz" class="embed-responsive embed-responsive-4by3 embed-responsive-item ">
<iframe t-att-src="embed_url" class="o_wslides_iframe_viewer" allowFullScreen="true" height="315" width="420" frameborder="0"></iframe>
</div>
- <div style="width:100%;height:100%;" t-if="slide.slide_type == 'infographic' &amp;&amp; !showMiniQuiz">
- <img t-attf-src="/web/image/slide.slide/#{slide.id}/datas" class="img-fluid" style="width: 100%" alt="Slide image"/>
+ <div style="width:100%;height:100%;text-align:center;" t-if="slide.slide_type == 'infographic' &amp;&amp; !showMiniQuiz">
+ <img t-attf-src="/web/image/slide.slide/#{slide.id}/image" class="img-fluid" style="height: 100%" alt="Slide image"/>
</div>
<div t-if="(slide.slide_type == 'quiz' || showMiniQuiz) &amp;&amp; questions " class="o_wslides_fullscreen_quiz">
<div>