Group up existing components into elements
This commit is contained in:
5
elements/Avatar/AvatarNoLink.pixy
Normal file
5
elements/Avatar/AvatarNoLink.pixy
Normal file
@ -0,0 +1,5 @@
|
||||
component AvatarNoLink(user *arn.User)
|
||||
if user.HasAvatar()
|
||||
img.user-image.lazy(data-src=user.AvatarLink("small"), data-webp="true", alt=user.Nick)
|
||||
else
|
||||
SVGAvatar(user)
|
Reference in New Issue
Block a user