feature: add poll notification template

This commit is contained in:
Sylvain Lehmann 2021-05-28 18:16:28 +02:00
parent daf0d06fb5
commit a584761cca
2 changed files with 9 additions and 1 deletions

View File

@ -2,4 +2,5 @@
include notifications/message-circle.pug include notifications/message-circle.pug
include notifications/message-project.pug include notifications/message-project.pug
include notifications/message-private.pug include notifications/message-private.pug
include notifications/message-poll.pug

View File

@ -0,0 +1,7 @@
solid-notifications-template(data-rdf-type='sib:poll')
template
.solid-notification__avatar
| ${await author['account.picture'] ? `<img src="${await author['account.picture']}" style="max-width:100%; max-height: 100%;" />` : `<img src="/images/alien.webp" />`}
.solid-notification__content
.solid-notification__title ${await author.name}
p.solid-notification__summary ${summary}