From: Emilie Date: Mon, 6 Feb 2017 17:49:58 +0000 (+0100) Subject: Display linked orga without logo X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=c4b13e18e0020e843004044564b561ae5d8d6743;p=mezzo.git Display linked orga without logo --- 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 %}