Replace include with partial tag

This commit is contained in:
2021-04-06 19:14:36 +02:00
parent 201ef73639
commit 120e63808a
4 changed files with 17 additions and 9 deletions

View File

@@ -5,8 +5,10 @@
{% if place.placeimages.all|length > 0 %}
{% include 'partials/image.html' with source_url=place.placeimages.first.filename.thumbnail.url link_url=place.get_absolute_url%}
{% else %}
<img class="LP-Image" src="{% static 'images/missing_image.png' %}" />
{% endif %}
<a href="{{place.get_absolute_url}}">
<img class="LP-Image" src="{% static 'images/missing_image.png' %}" />
</a>
{% endif %}
</div>
</a>
<div class="LP-PlaceTeaser__Meta">