NotificationListItem

Domain

Single notification row. Includes per-kind icon tones (order/message/system/alert/success/social), read/unread emphasis, relative time, and an optional "Mark read" button.

Mixed kinds (read + unread)

Code
<%- include('modules/domain/common/notification/NotificationListItem', {
  kind: 'order',
  title: 'Order #1042 has been shipped',
  body: 'Your package is on the way and should arrive by Friday.',
  createdAt: new Date(Date.now() - 5 * 60 * 1000),
  read: false,
  href: '/orders/1042'
}) %>

Single unread system notification

Preview

Scheduled maintenance tonight at 02:00 UTC

The dashboard will be briefly unavailable for ~10 minutes.

Code
<%- include('modules/domain/common/notification/NotificationListItem', {
  kind: 'system',
  title: 'Scheduled maintenance tonight at 02:00 UTC',
  body: 'The dashboard will be briefly unavailable for ~10 minutes.',
  createdAt: new Date(),
  read: false,
  onMarkRead: 'function(){ /* mark read */ }'
}) %>
Source modules/domain/common/notification/NotificationListItem.ejs