feature: notification - default avatar + styles added (ter)
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
solid-notifications-template(data-rdf-type='hd:circle')
|
||||
template
|
||||
.solid-notification__avatar
|
||||
img(src="${await author['account.foaf:depiction'] || '/images/alien.svg'}" style="${await author['account.foaf:depiction'] ? 'max-height:100%' : 'max-height:18px'}")
|
||||
| ${await author['account.foaf:depiction'] ? `<img src="${await author['account.foaf:depiction']}" style="max-width:100%; max-height: 100%;" />` : `<object type="image/svg+xml" data="/images/alien.svg"></object>`}
|
||||
.solid-notification__content
|
||||
.solid-notification__title ${await author.name}
|
||||
span.solid-notification__title__side dans
|
||||
|
@ -1,7 +1,7 @@
|
||||
solid-notifications-template(data-rdf-type='foaf:user')
|
||||
template
|
||||
.solid-notification__avatar
|
||||
img(src="${await author['account.foaf:depiction'] || '/images/alien.svg'}" style="${await author['account.foaf:depiction'] ? 'max-height:100%' : 'max-height:18px'}")
|
||||
| ${await author['account.foaf:depiction'] ? `<img src="${await author['account.foaf:depiction']}" style="max-width:100%; max-height: 100%;" />` : `<object type="image/svg+xml" data="/images/alien.svg"></object>`}
|
||||
.solid-notification__content
|
||||
.solid-notification__title ${await author.name}
|
||||
span.solid-notification__title__side en privé
|
||||
|
Reference in New Issue
Block a user