{% extends "common/base.html" %} {% from "components/header.html" import header %} {% block title %}Notifications - DocuPulse{% endblock %} {% block content %} {{ header( title="Notifications", description="View and manage your notifications", icon="fa-bell" ) }}
{% if notifications %} {% for notif in notifications %} {% endfor %} {% else %} {% endif %}
Timestamp Type From Status Actions
{{ notif.timestamp.strftime('%Y-%m-%d %H:%M:%S') }} {% if notif.notif_type == 'account_created' %} Account Created {% elif notif.notif_type == 'password_reset' %} Password Reset {% elif notif.notif_type == 'account_deleted' %} Account Deleted {% elif notif.notif_type == 'account_updated' %} Account Updated {% elif notif.notif_type == 'room_invite' %} Room Invite {% elif notif.notif_type == 'room_invite_removed' %} Room Invite Removed {% elif notif.notif_type == 'conversation_invite' %} Conversation Invite {% elif notif.notif_type == 'conversation_invite_removed' %} Conversation Invite Removed {% elif notif.notif_type == 'conversation_message' %} Conversation Message {% else %} {{ notif.notif_type }} {% endif %} {{ notif.sender.username + ' ' + notif.sender.last_name if notif.sender else 'System' }} {% if notif.read %} Read {% else %} Unread {% endif %}
{% if notif.notif_type in ['room_invite', 'room_invite_removed'] and notif.details and notif.details.room_id %} {% elif notif.notif_type in ['conversation_invite', 'conversation_invite_removed', 'conversation_message'] and notif.details and notif.details.conversation_id %} {% endif %} {% if not notif.read %} {% endif %}
No notifications found
Page {{ current_page }} of {{ total_pages }}
{% block extra_js %} {% endblock %} {% endblock %}