simpkey/src/views/notifications.pug

38 lines
1.4 KiB
Plaintext

extends _base
block header
+nav
block content
h2 Notifications
.notifications
each val in notifications
.notification
hr
case val.type
when 'follow'
p
b #{getUserName(val.user)}
span is following you
when 'mention'
when 'reply'
when 'renote'
when 'quote'
+note(val.note)
when 'reaction'
p
b #{getUserName(val.user)}
span reacted with #{val.reaction}
+sub-note(val.note)
when 'pollVote'
p #{getUserName(val.user)} さんが投票しました
+sub-note(val.note)
when 'receiveFollowRequest'
p #{getUserName(val.user)} さんからフォローリクエストされました
when 'followRequestAccepted'
p #{getUserName(val.user)} さんへのフォローが承認されました
when 'groupInvited'
when 'app'
default
p #{val.type} Notification (not yet implemented)