discourse-ai/assets/javascripts/discourse/components/reviewable-ai-chat-message.hbs

31 lines
782 B
Handlebars
Raw Normal View History

<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>
{{yield}}
<ModelAccuracies @accuracies={{@reviewable.payload.accuracies}} />
</div>
</div>