Added new conversations design

This commit is contained in:
2026-05-25 09:56:23 +02:00
parent 894845d3d3
commit 1affe88683
5 changed files with 70 additions and 370 deletions

View File

@@ -0,0 +1,33 @@
<xf:if is="$unreadConversations is not empty OR $readConversations is not empty">
<xf:foreach loop="$unreadConversations" value="$userConv">
<xf:macro id="popup_item" arg-userConv="{$userConv}" />
</xf:foreach>
<xf:foreach loop="$readConversations" value="$userConv">
<xf:macro id="popup_item" arg-userConv="{$userConv}" />
</xf:foreach>
<xf:else />
<div class="$notifications-empty">
<i data-lucide="mail-off" size="24"></i>
<span>No new conversations.</span>
</div>
</xf:if>
<xf:comment>Edited for RHPZ</xf:comment>
<xf:macro id="popup_item" arg-userConv="!">
<div class="$notifications-item {{ $userConv.isUnread() ? 'unread' : '' }}">
<div class="$notifications-avatar">
<xf:avatar user="$userConv.Master.LastMessageUser" size="xxs" defaultname="{$userConv.Master.last_message_username}" />
</div>
<div class="$notifications-content">
<a class="$notifications-text" href="{{ link('direct-messages/unread', $userConv) }}">{$userConv.Master.title}</a>
<span class="$notifications-date"><xf:date time="$userConv.Master.last_message_date" /></span>
</div>
<xf:if is="$userConv.isUnread()">
<div class="$notifications-unread-dot"></div>
</xf:if>
</div>
</xf:macro>