{% extends "chats/base_detail.html" %} {% load bootstrap_helpers %} {% load community_utils %} {% load community_buttons %} {% load chats %} {% load members %} {% block headline %}{{ channel|name_for:user }}{% endblock %} {% block subtitle %}#{{ channel.channel_id }}{% endblock %} {% block head_meta %} {% with meta_title=channel meta_description=channel.body %} {{ block.super }} {% endwith %} {% endblock head_meta %} {% block breadcrumbs %} {% with all_channels_url=channel.relation.get_list_url|str_add:"/.." %} {% breadcrumbs "Channels"|combine:all_channels_url channel.channel_type|verbose_model_name_plural|combine:channel.relation.get_list_url channel.channel_id_name|combine:request.path %} {% endwith %} {% endblock %} {% block action_buttons %} {% if user|can_change_channel:channel %} {% endif %} {% if channel.e2e_encrypted %} {% endif %} {% if not user.is_anonymous %} {% subscribe_button channel subscription %} {% url "chats:channel-list" as channels_url %} {% edit_button channel %} {% delete_button channel None url_for_next=channels_url %} {% endif %} {{ block.super }} {% endblock %} {% block content %} {% block channel_card %} {% channel_card channel channel_card_class="my-4" %} {% if channel.encryption_key %} {{ channel.serializer.data|json_script:"channel-data" }} {% endif %} {% endblock channel_card %} {% block tabs %} {% with subscription=channel|subscription_for:user active_tab=request.GET.tab|default:"conversationTab" %} {% tab_list conversationTab="Conversation" subscriberTab="Subscribers" disabled_tabs=subscription|ifnotthen:"subscriberTab" %} {% tab_content "conversationTab" %} {% include "chats/components/channel_conversation.html" %} {% endtab_content %} {% tab_content "subscriberTab" %} {% if subscription %} {% member_rows channel.subscribers.all %} {% endif %} {% endtab_content %} {% endtab_list %} {% endwith %} {% endblock %} {% endblock %} {% block sticky %} {% if thread_form and user|can_start_thread:channel %}
{% endif %} {% endblock %}