|
|
@ -54,30 +54,32 @@ block view-content |
|
|
|
|
|
|
|
.chat-stage-header Idle Members |
|
|
|
.sidebar-panel |
|
|
|
.uk-text-italic.uk-text-muted There are no idle members. |
|
|
|
.uk-text-italic There are no idle members. |
|
|
|
ul(id="chat-idle-members", data-room-id= room._id, hidden).uk-list.uk-list-collapse |
|
|
|
|
|
|
|
.chat-container |
|
|
|
.chat-stage-header |
|
|
|
div(uk-grid).uk-grid-small |
|
|
|
.uk-width-expand |
|
|
|
.uk-text-truncate= room.name |
|
|
|
if room.owner._id.equals(user._id) |
|
|
|
.uk-width-auto |
|
|
|
a(href=`/chat/room/${room._id}/settings`, uk-tooltip={ title: 'Configure room settings' }).uk-link-reset |
|
|
|
i.fas.fa-cog |
|
|
|
.uk-width-auto |
|
|
|
a(href="/", uk-tooltip={ title: 'Leave room' }).uk-link-reset |
|
|
|
i.fas.fa-person-through-window |
|
|
|
|
|
|
|
.chat-content-panel |
|
|
|
.live-content |
|
|
|
.chat-content-panel.uk-height-1-1 |
|
|
|
|
|
|
|
.live-content.uk-height-1-1 |
|
|
|
.chat-stage-header |
|
|
|
div(uk-grid).uk-grid-small |
|
|
|
.uk-width-expand |
|
|
|
.uk-text-truncate= room.name |
|
|
|
if room.owner._id.equals(user._id) |
|
|
|
.uk-width-auto |
|
|
|
a(href=`/chat/room/${room._id}/settings`, uk-tooltip={ title: 'Configure room settings' }).uk-link-reset |
|
|
|
i.fas.fa-cog |
|
|
|
.uk-width-auto |
|
|
|
a(href="/", uk-tooltip={ title: 'Leave room' }).uk-link-reset |
|
|
|
i.fas.fa-person-through-window |
|
|
|
|
|
|
|
.chat-media |
|
|
|
div(uk-grid).uk-flex-center |
|
|
|
div(class="uk-width-1-1 uk-width-1-2@m uk-width-1-3@l uk-width-1-4@xl") |
|
|
|
+renderLiveMember(user) |
|
|
|
|
|
|
|
div(id="chat-message-list").chat-messages |
|
|
|
div(id="chat-message-list").chat-messages.uk-height-1-1 |
|
|
|
- |
|
|
|
var testMessage = { |
|
|
|
created: new Date(), |
|
|
@ -88,23 +90,23 @@ block view-content |
|
|
|
each message of messages |
|
|
|
+renderChatMessage(message) |
|
|
|
|
|
|
|
.chat-input-panel |
|
|
|
form( |
|
|
|
method="POST", |
|
|
|
action=`/chat/room/${room._id}/message`, |
|
|
|
id="chat-input-form", |
|
|
|
data-room-id= room._id, |
|
|
|
onsubmit="return window.dtp.app.sendUserChat(event);", |
|
|
|
hidden= user && user.flags && user.flags.isCloaked, |
|
|
|
enctype="multipart/form-data" |
|
|
|
).uk-form |
|
|
|
textarea(id="chat-input-text", name="content", rows=2).uk-textarea.uk-resize-none.uk-border-rounded |
|
|
|
.uk-margin-small |
|
|
|
.uk-flex |
|
|
|
.uk-width-expand |
|
|
|
.uk-width-auto |
|
|
|
button(id="chat-send-btn", type="submit", uk-tooltip={ title: 'Send message' }).uk-button.uk-button-primary.uk-button-small.uk-border-rounded.uk-light |
|
|
|
i.fas.fa-paper-plane |
|
|
|
.chat-input-panel |
|
|
|
form( |
|
|
|
method="POST", |
|
|
|
action=`/chat/room/${room._id}/message`, |
|
|
|
id="chat-input-form", |
|
|
|
data-room-id= room._id, |
|
|
|
onsubmit="return window.dtp.app.sendUserChat(event);", |
|
|
|
hidden= user && user.flags && user.flags.isCloaked, |
|
|
|
enctype="multipart/form-data" |
|
|
|
).uk-form |
|
|
|
textarea(id="chat-input-text", name="content", rows=2).uk-textarea.uk-resize-none.uk-border-rounded |
|
|
|
.uk-margin-small |
|
|
|
.uk-flex |
|
|
|
.uk-width-expand |
|
|
|
.uk-width-auto |
|
|
|
button(id="chat-send-btn", type="submit", uk-tooltip={ title: 'Send message' }).uk-button.uk-button-primary.uk-button-small.uk-border-rounded.uk-light |
|
|
|
i.fas.fa-paper-plane |
|
|
|
|
|
|
|
block viewjs |
|
|
|
script. |
|
|
|