Browse Source

feature: add poll notification template

webpushnotifications
Sylvain Lehmann 4 months ago
parent
commit
a584761cca
  1. 3
      src/views/partials/notifications.pug
  2. 7
      src/views/partials/notifications/message-poll.pug

3
src/views/partials/notifications.pug

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

7
src/views/partials/notifications/message-poll.pug

@ -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}
Loading…
Cancel
Save