{% if groups.count == 1 and groups.0.parent_groups.all and request.site.preferences.chronos__use_parent_groups %} {% include "chronos/partials/groups_part.html" with groups=groups.0.parent_groups.all %} {% else %} {% include "chronos/partials/groups_part.html" with groups=groups %} {% endif %}