feature: notification - default avatar + styles added (bis)

This commit is contained in:
gaelle morin 2020-07-15 19:21:49 +02:00
parent e56e2880d7
commit 014cfaa5c8
No known key found for this signature in database
GPG Key ID: 028426702B95CF9C
2 changed files with 2 additions and 2 deletions

View File

@ -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=`max-height:${clientLogoHeight || '18px'}`)
img(src="${await author['account.foaf:depiction'] || '/images/alien.svg'}" style="${await author['account.foaf:depiction'] ? 'max-height:100%' : 'max-height:18px'}")
.solid-notification__content
.solid-notification__title ${await author.name}
span.solid-notification__title__side dans

View File

@ -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=`max-height:${clientLogoHeight || '18px'}`)
img(src="${await author['account.foaf:depiction'] || '/images/alien.svg'}" style="${await author['account.foaf:depiction'] ? 'max-height:100%' : 'max-height:18px'}")
.solid-notification__content
.solid-notification__title ${await author.name}
span.solid-notification__title__side en privé