{% load rules utils %}
{% has_perm 'content.view_author' user content as can_view_author %}
{% with groups=content.groups %}
{% if groups.count == 1 %}
{% include 'entities/_group_avatar.html' with group=groups.first link=True size=48 %}
{% else %}
{% if can_view_author %}
{% include 'entities/_gestalt_avatar.html' with gestalt=content.author link=True size=48 %}
{% endif %}
{% endif %}
{% endwith %}
{% with groups=content.groups %}
{% if groups.count == 1 %}
{{ groups.first }}
{% if can_view_author %}
({{ content.author }}{% if content.additional_authors.all %} und andere{% endif %})
{% endif %}
{% else %}
{% if can_view_author %}
{{ content.author }}
{% endif %}
{% endif %}
{% endwith %}
·
{% if user and group and content %}
{% has_perm 'associations.create_content_group_membership' user group|connect:content.author as can_create %}
{% if can_create %}
als Mitglied aufnehmen ·
{% endif %}
{% endif %}
{% if content.gallery %}
{{ content.images.count }}
{% endif %}
{{ content.comments.count }}
{% include_features '_content_meta_stats.html' %}