-
{{ 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