DTP Base provides a scalable and secure Node.js application development harness ready for production service.
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.
 
 
 
 

13 lines
436 B

mixin renderUserIcon (user, options)
-
var iconImageUrl = (user.picture && user.picture.small) ? `/image/${user.picture.small._id || user.picture.small}` : '/img/default-member.png';
options = Object.assign({
title: user.displayName || user.username,
iconClass: 'sb-xxsmall',
}, options);
img(
src= iconImageUrl,
class= `streamray-profile-picture ${options.iconClass}`,
title= options.title,
)