From add00d488ce6ebb4417bd99dd772a5e0f0dafbd8 Mon Sep 17 00:00:00 2001 From: Kobe Date: Wed, 4 Jun 2025 11:06:53 +0200 Subject: [PATCH] Update notification_overview.html --- .../components/notification_overview.html | 54 +++++++++++++++++-- 1 file changed, 49 insertions(+), 5 deletions(-) diff --git a/templates/components/notification_overview.html b/templates/components/notification_overview.html index d2254fa..5713cce 100644 --- a/templates/components/notification_overview.html +++ b/templates/components/notification_overview.html @@ -26,11 +26,55 @@
-
{{ notification.title }}
- - {{ notification.message }} - • {{ notification.timestamp.strftime('%Y-%m-%d %H:%M') }} - + {% if notification.notif_type == 'account_created' %} +
+ Account Created +
+ + Welcome to DocuPulse! Your account has been created successfully. + + {% elif notification.notif_type == 'room_invite' %} +
+ Room Invitation +
+ + {% if notification.sender %} + {{ notification.sender.username }} invited you to join room "{{ notification.details.room_name }}" + {% endif %} + + {% elif notification.notif_type == 'conversation_invite' %} +
+ Conversation Invitation +
+ + {% if notification.sender %} + {{ notification.sender.username }} invited you to a conversation + {% endif %} + + {% elif notification.notif_type == 'conversation_message' %} +
+ New Message +
+ + {% if notification.sender %} + {{ notification.sender.username }} sent a message in "{{ notification.details.conversation_name }}" + {% endif %} + + {% else %} +
+ {{ notification.notif_type|replace('_', ' ')|title }} +
+ + {% if notification.details and notification.details.message %} + {{ notification.details.message }} + {% endif %} + + {% endif %} +
+ + {{ notification.timestamp.strftime('%Y-%m-%d %H:%M') }} + +
{% if not notification.read %} New