feat: conditional rendering of 'courses' teaser in travelinfo
This commit is contained in:
1 parent
f30c887a12
commit
ae7e8b2d45
4 files changed
+21
-4
No files matched your search
@@ -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">
|
||||
|
||||
Reference in new issue
Block a user