From c4b13e18e0020e843004044564b561ae5d8d6743 Mon Sep 17 00:00:00 2001 From: Emilie Date: Mon, 6 Feb 2017 18:49:58 +0100 Subject: [PATCH] Display linked orga without logo --- .../page/includes/linked_organization_footer.html | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/app/templates/pages/page/includes/linked_organization_footer.html b/app/templates/pages/page/includes/linked_organization_footer.html index d93206bb..700ba317 100644 --- a/app/templates/pages/page/includes/linked_organization_footer.html +++ b/app/templates/pages/page/includes/linked_organization_footer.html @@ -1,9 +1,13 @@ {% load organization_tags %} {% for lof in linked_organization_footer %} - {% if lof.images.all %} + {% if lof.images.all|length > 0 %} - {% with lof.images|get_type:"logo_white"|first as img %} - + {% with lof.images|get_type:"logo_white" as img %} + {% if img %} + {% with img|first as img %} + + {% endwith %} + {% endif %} {% endwith %} {% endif %} -- 2.39.5