Improved notifications view
This commit is contained in:
@ -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")
|
Reference in New Issue
Block a user