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.
25 lines
952 B
25 lines
952 B
mixin renderInviteListItem (invite)
|
|
.uk-margin-small
|
|
div(uk-grid).uk-grid-small
|
|
.uk-width-auto
|
|
+renderProfileIcon(invite.member, 'Invited member')
|
|
.uk-width-expand
|
|
.uk-text-bold.uk-text-truncate= invite.member.displayName || invite.member.username
|
|
.uk-text-small.uk-text-muted
|
|
.uk-text-truncate= invite.member.username
|
|
.uk-text-truncate= moment(invite.created).fromNow()
|
|
if invite.status === 'new'
|
|
.uk-width-auto
|
|
button(
|
|
type="button",
|
|
data-room-id= invite.room._id,
|
|
data-invite-id= invite._id,
|
|
onclick='return dtp.app.chat.deleteInvite(event);',
|
|
).uk-button.uk-button-danger.uk-button-small.uk-border-rounded
|
|
span
|
|
i.fas.fa-trash
|
|
span.uk-margin-small-left DELETE
|
|
|
|
if invite.message
|
|
label.uk-form-label Message to @#{invite.member.username}:
|
|
div= invite.message
|