This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/plugins/chat/assets/javascripts/discourse/components/chat-channel-preview-card.hbs

24 lines
652 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}}
@onToggle={{this.afterMembershipToggle}}
@options={{hash joinClass="btn-primary"}}
/>
{{/if}}
<LinkTo @route="chat.browse" class="chat-channel-preview-card__browse-all">
{{i18n "chat.browse_all_channels"}}
</LinkTo>
</div>