{% if user.is_authenticated %} {% if association.public %} {% else %} {% if association.entity.is_group %} {% else %} {% endif %} {% endif %} {% endif %}