2018-02-27 14:27:16 +00:00
|
|
|
component Notifications(notifications []*arn.Notification, user *arn.User)
|
|
|
|
h1 Notifications
|
|
|
|
|
2018-02-28 22:26:06 +00: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 14:27:16 +00:00
|
|
|
|
|
|
|
component Notification(notification *arn.Notification)
|
2018-02-28 23:06:03 +00:00
|
|
|
a.notification(href=notification.Link, target="_blank", data-seen=notification.Seen)
|
2018-02-27 14:27:16 +00:00
|
|
|
.notification-icon
|
|
|
|
img.lazy(data-src=notification.Icon, alt=notification.Title)
|
|
|
|
|
|
|
|
.notification-info
|
2018-02-28 22:26:06 +00:00
|
|
|
h3.notification-title= notification.Title
|
|
|
|
.notification-footer
|
|
|
|
p.notification-text= notification.Message
|
2018-02-28 23:06:03 +00:00
|
|
|
.notification-date.utc-date(data-date=notification.Created)
|
|
|
|
|
|
|
|
if notification.Seen != ""
|
|
|
|
.notification-seen
|
|
|
|
RawIcon("check")
|