Added custom tooltips
This commit is contained in:
parent
72eca51224
commit
6e697dba98
@ -3,7 +3,7 @@ component Sidebar(user *arn.User)
|
||||
//- User avatar
|
||||
.user-image-container
|
||||
if user != nil
|
||||
Avatar(user)
|
||||
AvatarNoTip(user)
|
||||
else
|
||||
img.user-image.lazy(src=utils.EmptyImage(), data-src="/images/brand/64.png", data-webp="true", alt="Anime Notifier")
|
||||
|
||||
|
@ -11,6 +11,10 @@ component AvatarNoLink(user *arn.User)
|
||||
else
|
||||
SVGAvatar(user)
|
||||
|
||||
component AvatarNoTip(user *arn.User)
|
||||
a.user(href=user.Link(), title=user.Nick)
|
||||
AvatarNoLink(user)
|
||||
|
||||
component ProfileImage(user *arn.User)
|
||||
if user.HasAvatar()
|
||||
img.profile-image.lazy(data-src=user.AvatarLink("large"), data-webp="true", alt="Profile image")
|
||||
|
Loading…
Reference in New Issue
Block a user