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