Files
discourse/plugins/discourse-events/assets/javascripts/discourse/components/discourse-post-event/chat-channel.gjs
T
David Battersby 629c919eb2 DEV: rename Discourse Calendar to Discourse Events (#42021)
Moves the plugin directory and associated files, along with updating
various import references.
2026-08-12 11:34:15 +04:00

21 lines
600 B
Plaintext

import { LinkTo } from "@ember/routing";
import { and } from "discourse/truth-helpers";
import ChannelTitle from "discourse/plugins/chat/discourse/components/channel-title" with {
discourseImport: "optional",
};
export default <template>
{{#if (and @event.channel ChannelTitle)}}
<section class="event__section event-chat-channel">
<span></span>
<LinkTo
@route="chat.channel"
@models={{@event.channel.routeModels}}
class="chat-channel-link"
>
<ChannelTitle @channel={{@event.channel}} />
</LinkTo>
</section>
{{/if}}
</template>