{% load cache thumbnail utils content %} {% cache cache_timeout group-preview link user.gestalt.id group.id %} {% kwacro preview_body %}
{% if group.get_head_gallery and group.get_head_gallery.images.first %}
{% comment %}WHEN CHANGING GROUP COVER IMAGE SIZE CHANGE IN API TOO{% endcomment %} {% thumbnail group.get_head_gallery.images.first.file '360x120' crop='center' as thumb %} {% endthumbnail %}
{% else %}
{% endif %} {% include "entities/_group_avatar.html" with group=group link=False %} {% if user.is_authenticated %}
{% include_features '_group_preview_stats.html' %}
{% endif %}

{{ group.name }}

{{ group.description|default:"Diese Gruppe hat noch keine Beschreibung auf Stadtgestalten hinterlegt." }}

{% endkwacro %} {% if link %} {% usekwacro preview_body %} {% else %}
{% usekwacro preview_body %}
{% endif %} {% endcache %}