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

View File

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