{% load chats %} {% load community_utils %}
{% if channel.name %} {{ channel.name }} {% else %} {% with subscribers=channel|other_subscribers:user %} {% if subscribers|length == 1 %} {% with subscriber=subscribers|first %} {{ subscriber }} {% endwith %} {% else %} {% for subscriber in subscribers|slice:":3" %} {{ subscriber }}{% if not forloop.last %},{% endif %} {% empty %} Unnamed channel {% endfor %} {% if subscribers|length > 3 %} +{{ subscribers|length|subtract:3 }} {% endif %} {% endif %} {% endwith %} {% endif %} #{{ channel.channel_id }}