Changed PlaceList description to not cus description < threshold.

This commit is contained in:
Marcus Scholz 2020-08-12 22:15:44 +02:00
parent 8889314d9e
commit adc0fd4d5e

View File

@ -24,7 +24,13 @@
</span>
</div>
<div class="LP-PlaceTeaser__Description">
<p class="LP-Paragraph">{{place.description|truncatechars:210|truncatewords:-1}}</p>
<p class="LP-Paragraph">
{% if place.description|length > 210 %}
{{place.description|truncatechars:210|truncatewords:-1}}
{% else %}
{{place.description}}
{% endif %}
</p>
</div>
<div class="LP-PlaceTeaser__Icons">
<ul class="LP-Icon__List">