Skip to content
Snippets Groups Projects
Commit 153de28c authored by qmo-odoo's avatar qmo-odoo
Browse files

[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
parent e99ca925
Branches
Tags
No related merge requests found
......@@ -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>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment