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