mirror of
https://github.com/discourse/discourse.git
synced 2025-02-19 19:14:17 +08:00
![Roman Rizzi](/assets/img/avatar_default.png)
* DEV: Rnemae channel path to just c Also swap the channel id and channel slug params to be consistent with core. * linting * channel_path * Drop slugify helper and channel route without slug * Request slug and route models through the channel model if possible * DEV: Pass messageId as a dynamic segment instead of a query param * Ensure change is backwards-compatible * drop query param from oneboxes * Correctly extract channelId from routes * Better route organization using siblings for regular and near-message * Ensures sessions are unique even when using parallelism * prevents didReceiveAttrs to clear input mid test * we disable animations in capybara so sometimes the message was barely showing * adds wait * ensures finished loading * is it causing more harm than good? * this check is slowing things for no reason * actually target the button * more resilient select chat message * apply similar fix to bookmark * fix --------- Co-authored-by: Joffrey JAFFEUX <j.jaffeux@gmail.com>
41 lines
1.0 KiB
Handlebars
41 lines
1.0 KiB
Handlebars
<div class="flagged-post-header">
|
|
<LinkTo
|
|
@route="chat.channel.near-message"
|
|
@models={{array
|
|
this.chatChannel.slugifiedTitle
|
|
this.chatChannel.id
|
|
@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> |