You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
680 B
16 lines
680 B
mixin renderChatMessage (message)
|
|
.chat-message
|
|
.uk-flex
|
|
.uk-width-auto.no-select
|
|
img(src="/img/default-member.png").member-profile-icon
|
|
.uk-width-expand
|
|
.message-attribution.uk-margin-small.no-select
|
|
.uk-flex.uk-flex-top
|
|
.uk-width-expand
|
|
if (message.author.displayName && (message.author.displayName.length > 0))
|
|
.author-display-name= message.author.displayName
|
|
.author-username @#{message.author.username}
|
|
.uk-width-auto
|
|
.message-timestamp= dayjs(message.created).format('h:mm a')
|
|
.message-content
|
|
div!= marked.parse(message.content)
|
|
|