new
parent
103f2c96bf
commit
d3df878d0e
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,14 +1,21 @@
|
||||
<div data-roomid = {{chat_room.id}} data-session="{{chat_room.chatroomguest.visitor.session_id}}" class="chat-room w-full flex flex-col gap-1 py-3 px-3 border-b border-gray-100 text-sm cursor-pointer">
|
||||
<div data-roomid={{chat_room.id}} data-session="{{chat_room.chatroomguest.visitor.session_id}}"
|
||||
class="chat-room w-full flex flex-col gap-1 py-4 px-3 border-b border-gray-200 text-sm cursor-pointer bg-white">
|
||||
<div class="w-full flex justify-between items-center">
|
||||
<div class="w-full flex items-center gap-2">
|
||||
<div class="w-[40px] h-[40px] rounded-full">
|
||||
<img src="{{chat_room.chatroomguest.visitor.flag_image_url}}">
|
||||
</div>
|
||||
<div class="flex flex-col">
|
||||
<p class="text-secondosiblue font-poppinsBold">{{chat_room.chatroomguest.visitor.ip_address}}</p>
|
||||
<p class="text-gray-500 text-xs">{{chat_room.chatmessage_set.all.last.content}}</p>
|
||||
|
||||
<p class="text-gray-500 opacity-70 text-xs">{{chat_room.last_updated}}</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div data-roomid={{chat_room.id}}
|
||||
class="unread w-[20px] h-[20px] bg-osiblue rounded-full shadow-md flex justify-center items-center text-white text-[10px] {% if chat_room.number_of_unread == 0 %} hidden {% endif %}">
|
||||
<p>{{number_of_unread}}</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<p class="text-gray-500 text-xs">{{chat_room.chatmessage_set.all.last.content}}</p>
|
||||
|
||||
<p class="text-gray-500 opacity-70 text-xs">{{chat_room.last_updated}}</p>
|
||||
</div>
|
@ -0,0 +1,30 @@
|
||||
<!-- VISITORS -->
|
||||
<div class="h-full flex flex-col" id="visitors">
|
||||
<div class="w-full py-3 px-3 border-b border-gray-200 flex items-center gap-2">
|
||||
<div class="w-[20px] h-[20px] bg-green-600 rounded-full onlineDot">
|
||||
<div class="wave"></div>
|
||||
</div>
|
||||
|
||||
<p class="text-secondosiblue">Active</p>
|
||||
</div>
|
||||
|
||||
{% for visitor in visitors %}
|
||||
<div class="w-full flex justify-between gap-2 items-center py-3 px-3 border-b border-gray-200 text-sm cursor-pointer bg-white">
|
||||
<div class="w-full flex gap-2 items-center">
|
||||
<div class="w-[40px] h-[40px] rounded-full">
|
||||
<img src="{{visitor.flag_image_url}}">
|
||||
</div>
|
||||
|
||||
<div class="flex flex-col">
|
||||
<p class="text-secondosiblue font-poppinsBold">{{visitor.ip_address}}</p>
|
||||
<p class="text-fifthosiblue text-xs">{{visitor.visitorlog_set.all.last.url}}</p>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<p class="text-gray-500 text-sm">00:00</p>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
||||
|
Loading…
Reference in New Issue