23 lines
701 B
Plaintext
Raw Normal View History

2018-02-27 15:27:16 +01:00
component Notifications(notifications []*arn.Notification, user *arn.User)
h1 Notifications
2018-02-28 23:26:06 +01:00
.corner-buttons
button.action(data-action="markNotificationsAsSeen", data-trigger="click")
Icon("check")
span Mark all as seen
.notifications-container
.notifications
each notification in notifications
Notification(notification)
2018-02-27 15:27:16 +01:00
component Notification(notification *arn.Notification)
.notification
.notification-icon
img.lazy(data-src=notification.Icon, alt=notification.Title)
.notification-info
2018-02-28 23:26:06 +01:00
h3.notification-title= notification.Title
.notification-footer
p.notification-text= notification.Message
.notification-date.utc-date(data-date=notification.Created)