7 changed files with 67 additions and 59 deletions
@ -0,0 +1,17 @@ |
|||
mixin renderProfileIcon (user, title) |
|||
if user.core |
|||
img( |
|||
src=`http://${user.core.meta.domain}/core/user/${user.coreUserId}/picture`, |
|||
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 |
Loading…
Reference in new issue