Fix broken hotel teaser rendering in case of inavailability

This commit is contained in:
Björn Fromme
2018-07-03 11:45:32 +02:00
parent 81a148b8dc
commit 4b73b37f4a
4 changed files with 38 additions and 4 deletions
@@ -19,8 +19,10 @@
</f:if>
<hr>
{hotel.teaser -> f:format.crop(maxCharacters: settings.teaserTextMaxChars) -> f:format.html()}
<hr>
<span class="teaserbox__price"><strong>{f:if(condition: '{hotel.available} > 0', then: 'ab {hotel.minPrice} €', else: 'ausgebucht')}</strong></span>
<f:if condition="{hotel.available} != -1">
<hr>
<span class="teaserbox__price"><strong>{f:if(condition: '{hotel.available} > 0', then: 'ab {hotel.minPrice} €', else: 'ausgebucht')}</strong></span>
</f:if>
</div>
<button class="button button--full teaserbox__button">{f:translate(key: 'tx_eptheme.label.teaserbutton.default', extensionName: 'ep_theme')}</button>
</f:link.page>
@@ -9,7 +9,7 @@
<div class="teaserbox__image">
<img class="teaserbox__flag"
src="{f:uri.image(src: '{ep:flagiconSource(countryCode: hotel.country.code)}')}"
alt="{country: hotel.country.name}"/>
alt="{hotel.country.name}"/>
<f:render partial="TeaserImage" arguments="{image: hotel.images.0}"/>
</div>
<div class="teaserbox__main">