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