logo

pleroma-fe

My custom branche(s) on git.pleroma.social/pleroma/pleroma-fe git clone https://hacktivis.me/git/pleroma-fe.git

chat_list_item.vue (1157B)


  1. <template>
  2. <div
  3. class="chat-list-item"
  4. @click.capture.prevent="openChat"
  5. >
  6. <div class="chat-list-item-left">
  7. <UserAvatar
  8. :user="chat.account"
  9. height="48px"
  10. width="48px"
  11. />
  12. </div>
  13. <div class="chat-list-item-center">
  14. <div class="heading">
  15. <span
  16. v-if="chat.account"
  17. class="name-and-account-name"
  18. >
  19. <ChatTitle
  20. :user="chat.account"
  21. />
  22. </span>
  23. <span class="heading-right" />
  24. <div class="time-wrapper">
  25. <Timeago
  26. :time="chat.updated_at"
  27. :auto-update="60"
  28. />
  29. </div>
  30. </div>
  31. <div class="chat-preview">
  32. <StatusBody
  33. class="chat-preview-body"
  34. :status="messageForStatusContent"
  35. :single-line="true"
  36. />
  37. <div
  38. v-if="chat.unread > 0"
  39. class="badge -notification unread-chat-count"
  40. >
  41. {{ chat.unread }}
  42. </div>
  43. </div>
  44. </div>
  45. </div>
  46. </template>
  47. <script src="./chat_list_item.js"></script>
  48. <style lang="scss">
  49. @import "./chat_list_item";
  50. </style>