package components import ( "context" "fmt" "strconv" ) // Note: To implement pagination, update the NotificationsData struct in notifications.templ // to include these fields: // CurrentPage int // TotalPages int // TotalCount int // PerPage int templ NotificationsPage(ctx context.Context, data NotificationsData) { @LayoutWithContext("Notifications", ctx) {
You don't have any notifications yet.
{ notification.Message }
Showing { fmt.Sprint((data.CurrentPage-1)*data.PerPage + 1) } to { fmt.Sprint(minInt((data.CurrentPage)*data.PerPage, data.TotalCount)) } of { fmt.Sprint(data.TotalCount) } notifications
Notifications keep you updated on important system events and alerts.
Unread notifications are highlighted in blue. Mark them as read to clear the highlight.
Adjust how many notifications to display per page using the dropdown menu.