{% load cosinnus_tags %} {% if object.attached_objects.exists and not hide_attached or not hide_attached == True %} {% cosinnus_render_attached_objects object %} {% endif %} {% comment %} TODO: hide this wrapper if ALL of the meta-attributes don't exist {% endcomment %} {% with group_carry=group %} {% with mt=object.media_tag_object|tag_group_filtered:group_carry %} {% with persons=mt.persons.all tags=mt.tags.all location=mt.location topics=mt.topics approach=mt.approach visibility=mt.visibility %} {% if persons or tags or location or topics or approach or visibility != 1 and not hide_visibility_tag %}
{% endif %} {% endwith %} {% endwith %} {% endwith %}