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