* DEV: Rnemae channel path to just c Also swap the channel id and channel slug params to be consistent with core. * linting * channel_path * params in wrong order * Drop slugify helper and channel route without slug * Request slug and route models through the channel model if possible * Add client side redirection for backwards-compatibility Co-authored-by: Joffrey JAFFEUX <j.jaffeux@gmail.com>
38 lines
1001 B
Handlebars
38 lines
1001 B
Handlebars
<div class="flagged-post-header">
|
|
<LinkTo
|
|
@route="chat.channel"
|
|
@models={{this.chatChannel.routeModels}}
|
|
@query={{hash messageId=@reviewable.target_id}}
|
|
>
|
|
<ChatChannelTitle @channel={{this.chatChannel}} />
|
|
</LinkTo>
|
|
</div>
|
|
|
|
<div class="post-contents-wrapper">
|
|
<ReviewableCreatedBy @user={{@reviewable.target_created_by}} @tagName="" />
|
|
<div class="post-contents">
|
|
<ReviewablePostHeader
|
|
@reviewable={{@reviewable}}
|
|
@createdBy={{@reviewable.target_created_by}}
|
|
@tagName=""
|
|
/>
|
|
|
|
<div class="post-body">
|
|
{{html-safe (or @reviewable.payload.message_cooked @reviewable.cooked)}}
|
|
</div>
|
|
|
|
{{#if @reviewable.payload.transcript_topic_id}}
|
|
<div class="transcript">
|
|
<LinkTo
|
|
@route="topic"
|
|
@models={{array "-" @reviewable.payload.transcript_topic_id}}
|
|
class="btn btn-small"
|
|
>
|
|
{{i18n "review.transcript.view"}}
|
|
</LinkTo>
|
|
</div>
|
|
{{/if}}
|
|
|
|
{{yield}}
|
|
</div>
|
|
</div> |