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