Modified PlaceList template to also use thimbnails.

This commit is contained in:
Marcus Scholz 2020-07-27 22:54:27 +02:00
parent 912fb8da50
commit f41a292a71

View File

@ -7,7 +7,7 @@
<li class="LP-Place__Item"> <li class="LP-Place__Item">
<a href="{% url 'place_detail' pk=place.pk %}" class="LP-Link"> <a href="{% url 'place_detail' pk=place.pk %}" class="LP-Link">
<article class="LP-Place"> <article class="LP-Place">
<img class="LP-Place__Image" src="{{ place.images.first.filename.url }}" /> <img class="LP-Place__Image" src="{{ place.images.first.filename.url_thumbnail }}" />
<div class="LP-Place__Assets"> <div class="LP-Place__Assets">
<div class="LP-Place__Info"> <div class="LP-Place__Info">
<h3 class="LP-Place__Title">{{place.name}}</h3> <h3 class="LP-Place__Title">{{place.name}}</h3>