The Digital Telepresence Platform core implementing user account management, authentication, search, global directory, and other platform-wide services.
https://digitaltelepresence.com/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
519 B
17 lines
519 B
mixin renderProfileIcon (user, title, size)
|
|
if user.core
|
|
img(
|
|
src=`http://${user.core.meta.domain}/core/user/${user.coreUserId}/picture?s=${size || 'small'}`,
|
|
title= title,
|
|
).site-profile-picture.sb-navbar
|
|
else
|
|
if user.picture && user.picture.small
|
|
img(
|
|
src= `/image/${user.picture.small._id}`,
|
|
title= title,
|
|
).site-profile-picture.sb-navbar
|
|
else
|
|
img(
|
|
src= "/img/default-member.png",
|
|
title= title,
|
|
).site-profile-picture.sb-navbar
|
|
|