15 lines
433 B
Plaintext
15 lines
433 B
Plaintext
component Avatar(user *arn.User)
|
|
a.user.ajax(href="/+" + user.Nick, title=user.Nick)
|
|
AvatarNoLink(user)
|
|
|
|
component AvatarNoLink(user *arn.User)
|
|
if user.HasAvatar()
|
|
img.user-image(src=user.SmallAvatar(), alt=user.Nick)
|
|
else
|
|
SVGAvatar
|
|
|
|
component SVGAvatar
|
|
svg.user-image(viewBox="0 0 50 50")
|
|
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 |