From 7479cc932f026861e31aa50dea4610e10a73d0a3 Mon Sep 17 00:00:00 2001 From: Isaac Bythewood Date: Sat, 18 Nov 2017 04:32:24 -0500 Subject: [PATCH] Placeholder child list picture --- core/templates/core/child_list.html | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/core/templates/core/child_list.html b/core/templates/core/child_list.html index f1f72373..afce2b75 100644 --- a/core/templates/core/child_list.html +++ b/core/templates/core/child_list.html @@ -1,5 +1,5 @@ {% extends 'babybuddy/page.html' %} -{% load widget_tweaks thumbnail %} +{% load widget_tweaks static thumbnail %} {% block title %}Children{% endblock %} @@ -25,8 +25,12 @@ {% for child in object_list %} - {% thumbnail child.picture 40x40 upscale crop as thumb %} - + {% if child.picture %} + {% thumbnail child.picture 40x40 upscale crop as thumb %} + + {% else %} + + {% endif %} {{ child.first_name }}