You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

80 lines
3.7 KiB
HTML

{% load static %}
<link rel="stylesheet" type="text/css" href='{% static "dist/output.css" %}'>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css">
{% if latest_statuses_time_ago %}
{% for latest in latest_statuses_time_ago %}
<div class="w-full flex flex-col py-3">
<div class="w-full flex flex-col justify-center items-start gap-2">
<div class="w-full flex justify-between items-center gap-2">
<div class="flex justify-start gap-2 cursor-pointer userRecentActivitiesButton"
data-modal-url="{% url 'userrecentativities' latest.status.staff.user.id %}">
<div class="relative w-fit rounded-full">
<div class="w-[45px] h-[45px] rounded-full">
<img src='{{latest.status.staff.image.url}}' alt="user profile"
class="w-full h-full object-cover rounded-full">
</div>
{% if latest.status.staff in online_staff_profiles %}
<div class="w-[12px] h-[12px] absolute rounded-full bg-green-600 bottom-0 right-0 border-2 border-white">
</div>
{% else %}
<div class="w-[12px] h-[12px] absolute rounded-full bg-red-500 bottom-0 right-0 border-2 border-white">
</div>
{% endif %}
</div>
<div class="flex flex-col">
<h1 class="text-sm text-slate-700 font-semibold">{{latest.status.staff.user.first_name}}
{{latest.status.staff.user.last_name}}</h1>
{% if latest.time_ago == '0min ago' %}
<p class="text-sm text-gray-500">Just Now</p>
{%else %}
<p class="text-sm text-gray-500">{{ latest.time_ago}}</p>
{%endif%}
</div>
</div>
<div class="relative">
<div class="cursor-pointer hover:scale-105 duration-500 transition-transform" id="emojiPicker">
<img src="{% static 'images/icons/reactionicon.png' %}" class="w-[30px]">
</div>
<!-- REACTION MODAL -->
<!-- <div class="w-[200px] h-[100px] rounded-md bg-gray-50 shadow-md absolute -top-[180px] right-0 bg-opacity-30 z-20"></div> -->
</div>
</div>
<!-- Status -->
<div class="w-full">
{% if "Completed" in latest.status.text %}
<p class="text-sm text-green-700">{{latest.status.text}}</p>
{% else %}
<p class="text-sm text-grey-500">{{latest.status.text}}</p>
{% endif %}
</div>
<!-- Add comment section -->
<div class="w-full h-fit flex justify-between items-center border border-gray-200 mt-2 rounded-md relative">
<input type="text" placeholder="Add Comment..."
class="outline-none text-gray-500 px-3 w-full text-sm h-[40px] rounded-tl-md rounded-bl-md">
<button
class="w-fit absolute right-0 h-full px-3 py-2 bg-osiblue border border-osiblue hover:bg-white hover:text-osiblue duration-300 rounded-tr-md rounded-br-md text-white text-[12px]">
<i class="fa fa-send"></i>
</button>
</div>
</div>
</div>
{% endfor %}
{% else %}
<div class="w-full h-[210px] flex justify-center items-center">
<p class="text-base text-gray-500 text-center">No statuses at the moment.</p>
</div>
{% endif %}