{% load i18n event_tags %} {% with activity|get_herited:'has_perm' as has_perm %}
{% with activity|get_herited:'places' as places %} {% if places.all %} {{ places.all |join:", "}} {% else %}    -    {% endif %} {% endwith %} public  :  {% with activity|get_herited:'is_public' as is_public %} {% endwith %}
{% if activity.parent %} {{ activity.parent}} {% else %}    -    {% endif %} perm  : 
{% with activity|get_herited:'tags' as tags %} {% if tags.all %} {{ tags.all |join:", "}} {% else %}    -    {% endif %} {% endwith %} {% if has_perm %} {{ activity|get_herited:'min_perm' }} ≤ {{ activity.staff.count }} ≤ {{ activity|get_herited:'max_perm' }} {% endif %}
{% if has_perm %}
En perm : {% with activity.staff.all as staff %} {% if staff %} {{ staff |join:", "}} {% else %}    -    {% endif %} {% endwith %}
{% enrol_btn activity request.user %}
{% endif %} {% endwith %}