Added custom tooltips

This commit is contained in:
Eduard Urbach 2018-04-18 11:31:55 +02:00
parent 72eca51224
commit 6e697dba98
2 changed files with 5 additions and 1 deletions

View File

@ -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")

View File

@ -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")