feat: conditional rendering of 'courses' teaser in travelinfo

This commit is contained in:
Björn Fromme
2024-11-25 15:09:09 +01:00
parent f30c887a12
commit ae7e8b2d45
4 changed files with 21 additions and 4 deletions
@@ -113,7 +113,16 @@
</div>
<div class="container px-4 lg:px-24 flex flex-col space-y-16 pb-16">
<f:for each="{travelinfo.teasers}" as="teaser">
<f:render section="Teaser" arguments="{_all}"/>
<f:if condition="{teaser.category} == 'course'">
<f:then>
<f:if condition="{hasCourses}">
<f:render section="Teaser" arguments="{_all}"/>
</f:if>
</f:then>
<f:else>
<f:render section="Teaser" arguments="{_all}"/>
</f:else>
</f:if>
</f:for>
</div>
<div id="goodtoknow" class="bg-ep-primary-bg">