[IMP] website_slides: Fix slides displayed by category

This commit fixes an issue where only three slides would be
displayed instead of four in a category of the course page.

This was due to the promoted slide being ignored in its own
category.

After this commit, the promoted slide will appear in the promoted
slot AND in its category

TaskID: 1952064
PR: #32229
This commit is contained in:
qmo-odoo
2019-07-30 13:02:39 +00:00
parent e99ca925e1
commit 153de28c8c
@@ -581,12 +581,7 @@
</div>
<div class="row mx-n2">
<t t-foreach="category['slides']" t-as="slide">
<t t-if="(slide.id != slide_promoted.id) and (slide_promoted and not search) ">
<div class="col-12 col-sm-6 col-lg-3 px-2 d-flex flex-grow-1" t-call="website_slides.lesson_card"/>
</t>
<t t-elif="search_slide_type or search">
<div class="col-12 col-sm-6 col-lg-3 px-2 d-flex flex-grow-1" t-call="website_slides.lesson_card"/>
</t>
<div class="col-12 col-sm-6 col-lg-3 px-2 d-flex flex-grow-1" t-call="website_slides.lesson_card"/>
</t>
</div>
</div>