{% if entity.is_group %} {% include 'groups/_sidebar.html' with group=entity %} {% else %} {% if entity.public %} {% include 'gestalten/_sidebar.html' with gestalt=entity %} {% endif %} {% endif %}