{% extends 'creme_core/bricks/generic/hat-bar.html' %} {% load i18n %} {% block icon %} {% with img_url=object.image.get_download_absolute_url %} {% if img_url %} {% translate 'Logo' as img_label %} {% else %} {{block.super}} {% endif %} {% endwith %} {% endblock %}