From f77650b54d14902529fa8472cc080ffc06b9654a Mon Sep 17 00:00:00 2001 From: Commander1024 Date: Sun, 9 Aug 2020 13:48:45 +0200 Subject: [PATCH] Hide hero image div if none present. --- lostplaces/lostplaces_app/templates/placeOverview.html | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lostplaces/lostplaces_app/templates/placeOverview.html b/lostplaces/lostplaces_app/templates/placeOverview.html index d0444f7..47a92b4 100644 --- a/lostplaces/lostplaces_app/templates/placeOverview.html +++ b/lostplaces/lostplaces_app/templates/placeOverview.html @@ -10,9 +10,11 @@
-
- -
+ {% if place.images.first.filename.hero.url %} +
+ +
+ {% endif %}

{{place.name}}