This commit includes: * Additions to message and channel serializers for threads * New route and controller for a single thread * JS route for thread pane * Extremely basic thread pane component * Additions to channel manager to deal with threads, and ChatThread JS model * Changes to chat publisher and existing JS to get new thread ID when message is created
11 lines
322 B
Handlebars
11 lines
322 B
Handlebars
<div class={{concat-class
|
|
"chat-thread-pane"
|
|
(if @thread "chat-thread-pane--active-thread")
|
|
}}>
|
|
<p>Thread ID {{@thread.id}}, started by {{@thread.original_message_user.username}}</p>
|
|
|
|
<p>Excerpt: {{@thread.original_message_excerpt}}</p>
|
|
|
|
<p><a href onclick={{action "closeThread"}}>Close thread</a></p>
|
|
</div>
|