2016-11-18 17:58:00 +00:00
|
|
|
component Avatar(user *arn.User)
|
|
|
|
a.user.ajax(href="/+" + user.Nick, title=user.Nick)
|
2016-11-22 03:34:59 +00:00
|
|
|
AvatarNoLink(user)
|
|
|
|
|
|
|
|
component AvatarNoLink(user *arn.User)
|
2017-06-18 11:50:53 +00:00
|
|
|
if user.HasAvatar()
|
2017-06-24 15:38:10 +00:00
|
|
|
img.user-image.lazy(data-src=user.SmallAvatar(), alt=user.Nick)
|
2016-11-22 03:34:59 +00:00
|
|
|
else
|
2017-06-12 22:06:35 +00:00
|
|
|
SVGAvatar
|
2016-11-22 03:34:59 +00:00
|
|
|
|
2017-06-12 22:06:35 +00:00
|
|
|
component SVGAvatar
|
|
|
|
svg.user-image(viewBox="0 0 50 50")
|
2016-11-22 03:34:59 +00:00
|
|
|
circle.head(cx="25", cy="19", r="10")
|
|
|
|
circle.body(cx="25", cy="50", r="20")
|
|
|
|
//- text(x="25", y="44", text-anchor="middle") TODO
|