Merge remote-tracking branch 'origin/feature/community-default-picture'

This commit is contained in:
Jean-Baptiste Pasquier
2021-04-28 15:52:58 +02:00
5 changed files with 46 additions and 8 deletions

View File

@ -41,10 +41,10 @@ div.community-profile.padding-medium.sm-padding-none
class-segment10="segment full text-right"
class-segment11="segment full whitespace-normal flex"
class-profile.picture1="communities-profile-picture segment third sm-full"
class-profile.picture2="communities-profile-picture segment third sm-full"
class-profile.picture3="communities-profile-picture segment third sm-full"
class-segment11="segment full whitespace-normal"
class-profile.picture1="communities-profile-picture segment third sm-full text-top"
class-profile.picture2="communities-profile-picture segment third sm-full text-top"
class-profile.picture3="communities-profile-picture segment third sm-full text-top"
widget-logo="hubl-communities-profile-logo"
widget-profile.description="solid-display-value-markdown"

View File

@ -27,6 +27,7 @@ include widgets/hubl-communities-edit-email.pug
include widgets/hubl-communities-edit-website.pug
include widgets/hubl-communities-logo.pug
include widgets/hubl-communities-map-fix-url-name.pug
include widgets/hubl-communities-profile-picture.pug
include widgets/hubl-communities-profile-email.pug
include widgets/hubl-communities-profile-facebook.pug
include widgets/hubl-communities-profile-instagram.pug

View File

@ -1,3 +1,3 @@
if componentSet.has('communities') && getRoute('communities')
solid-widget(name='hubl-communities-profile-picture')
template ${value != "" ? `<div><div \style="background-image:url(${value});"></div></div>` : `<div class="picture-empty"></div>`}
template ${value != "" ? `<div><div \style="background-image:url(${value});"></div></div>` : `<div class="picture-empty"><object type="image/svg+xml" data="/images/photos.svg"></object></div>`}