Added additional route for notifications view

This commit is contained in:
2018-03-01 22:52:01 +01:00
parent 08b7a0e75c
commit 40ea58dffe
4 changed files with 20 additions and 6 deletions

View File

@ -1,10 +1,11 @@
component Notifications(notifications []*arn.Notification, user *arn.User)
component Notifications(notifications []*arn.Notification, viewUser *arn.User, user *arn.User)
h1 Notifications
.corner-buttons
button.action(data-action="markNotificationsAsSeen", data-trigger="click")
Icon("check")
span Mark all as seen
if user.ID == viewUser.ID
button.action(data-action="markNotificationsAsSeen", data-trigger="click")
Icon("check")
span Mark all as seen
.notifications-container
.notifications