|
|
@ -73,16 +73,29 @@ |
|
|
|
</li> |
|
|
|
</ui> |
|
|
|
<ui class="contacts"> |
|
|
|
<th:block th:each="userName: ${userNames}"> |
|
|
|
<th:block th:each="au: ${activeUsers}"> |
|
|
|
<li name="user-box" class="user-box"> |
|
|
|
<div class="d-flex bd-highlight"> |
|
|
|
<div class="img_cont"> |
|
|
|
<img src="https://static.turbosquid.com/Preview/001292/481/WV/_D.jpg" class="rounded-circle user_img"> |
|
|
|
<span class="online_icon"></span> |
|
|
|
<span th:if="${au.online == true}" class="online_icon"></span> |
|
|
|
</div> |
|
|
|
<div class="user_info"> |
|
|
|
<span th:text="${userName}">Khalid</span> |
|
|
|
<p th:text="${userName} + ' is online'">Kalid is online</p> |
|
|
|
<span th:text="${au.userName}">Khalid</span> |
|
|
|
<div th:switch="${au.online}"> |
|
|
|
<p th:case="true" th:text="${au.userName} + ' is online'">Khalid is online</p> |
|
|
|
<th:block th:case="false"> |
|
|
|
<th:block th:if="${au.lastActive == null}" > |
|
|
|
<p th:text="'User has not logged in yet'"></p> |
|
|
|
</th:block> |
|
|
|
<th:block th:if="${au.lastActive != null}"> |
|
|
|
<p th:text="'Last active = ' + ${au.lastActive}">Last active 3 hours ago</p> |
|
|
|
</th:block> |
|
|
|
<!-- <p th:case="${au.online == true}" th:text="${au.userName} + ' is online'">Khalid is online</p> |
|
|
|
<p th:if="${au.online == false}" th:text="${au.userName} + ' is offline' + ' Last active = ' + ${au.lastActive}">Khalid is offline. --> |
|
|
|
<!-- <span th:text="'Last active = ' + ${au.lastActive}"></span> --> |
|
|
|
</th:block> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="d-flex flex-column ml-auto"> |
|
|
|
<div class="text-right">Dec 25</div> |
|
|
|