2016-11-20 10:26:11 +00:00
|
|
|
component ProfileImage(user *arn.User)
|
2017-06-18 11:50:53 +00:00
|
|
|
if user.HasAvatar()
|
2017-07-11 15:18:19 +00:00
|
|
|
img.profile-image.lazy(src="", data-src=user.LargeAvatar(), data-webp="true", alt="Profile image")
|
2016-11-20 10:26:11 +00:00
|
|
|
else
|
2017-06-12 22:06:35 +00:00
|
|
|
svg.profile-image(viewBox="0 0 50 50", alt="Profile image")
|
2017-06-12 18:06:31 +00:00
|
|
|
circle.head(cx="25", cy="19", r="10")
|
|
|
|
circle.body(cx="25", cy="50", r="20")
|