mirror of
https://github.com/discourse/discourse.git
synced 2025-02-19 20:36:16 +08:00
22 lines
604 B
Handlebars
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> |