discourse/plugins/chat/assets/javascripts/discourse/components/chat-channel-preview-card.hbs
2022-12-28 13:11:12 +00:00

22 lines
604 B
Handlebars

<div
class={{concat-class
"chat-channel-preview-card"
(unless this.hasDescription "-no-description")
}}
>
<ChatChannelTitle @channel={{this.channel}} />
{{#if this.hasDescription}}
<p class="chat-channel-preview-card__description">
{{this.channel.description}}
</p>
{{/if}}
{{#if this.showJoinButton}}
<ToggleChannelMembershipButton
@channel={{this.channel}}
@options={{hash joinClass="btn-primary"}}
/>
{{/if}}
<LinkTo @route="chat.browse" class="chat-channel-preview-card__browse-all">
{{i18n "chat.browse_all_channels"}}
</LinkTo>
</div>