Improved notifications view

This commit is contained in:
2018-03-01 00:06:03 +01:00
parent 25c70eba0d
commit 0c89576f41
8 changed files with 115 additions and 43 deletions

View File

@ -12,7 +12,7 @@ component Notifications(notifications []*arn.Notification, user *arn.User)
Notification(notification)
component Notification(notification *arn.Notification)
.notification
a.notification(href=notification.Link, target="_blank", data-seen=notification.Seen)
.notification-icon
img.lazy(data-src=notification.Icon, alt=notification.Title)
@ -20,4 +20,8 @@ component Notification(notification *arn.Notification)
h3.notification-title= notification.Title
.notification-footer
p.notification-text= notification.Message
.notification-date.utc-date(data-date=notification.Created)
.notification-date.utc-date(data-date=notification.Created)
if notification.Seen != ""
.notification-seen
RawIcon("check")