Fixed HTML5 errors
This commit is contained in:
parent
3917586bd5
commit
1da3e52c55
@ -2,4 +2,4 @@ component AnimeGrid(animeList []*arn.Anime)
|
|||||||
.anime-grid
|
.anime-grid
|
||||||
each anime in animeList
|
each anime in animeList
|
||||||
a.anime-grid-cell.ajax(href="/anime/" + toString(anime.ID))
|
a.anime-grid-cell.ajax(href="/anime/" + toString(anime.ID))
|
||||||
img.anime-grid-image.lazy(data-src=anime.Image.Small, alt=anime.Title.Romaji, title=anime.Title.Romaji + " (" + toString(anime.Rating.Overall) + ")")
|
img.anime-grid-image.lazy(src="", data-src=anime.Image.Small, alt=anime.Title.Romaji, title=anime.Title.Romaji + " (" + toString(anime.Rating.Overall) + ")")
|
@ -4,7 +4,7 @@ component Avatar(user *arn.User)
|
|||||||
|
|
||||||
component AvatarNoLink(user *arn.User)
|
component AvatarNoLink(user *arn.User)
|
||||||
if user.HasAvatar()
|
if user.HasAvatar()
|
||||||
img.user-image.lazy(data-src=user.SmallAvatar(), data-webp="true", alt=user.Nick)
|
img.user-image.lazy(src="", data-src=user.SmallAvatar(), data-webp="true", alt=user.Nick)
|
||||||
else
|
else
|
||||||
SVGAvatar
|
SVGAvatar
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
component ProfileImage(user *arn.User)
|
component ProfileImage(user *arn.User)
|
||||||
if user.HasAvatar()
|
if user.HasAvatar()
|
||||||
img.profile-image.lazy(data-src=user.LargeAvatar(), data-webp="true", alt="Profile image")
|
img.profile-image.lazy(src="", data-src=user.LargeAvatar(), data-webp="true", alt="Profile image")
|
||||||
else
|
else
|
||||||
svg.profile-image(viewBox="0 0 50 50", alt="Profile image")
|
svg.profile-image(viewBox="0 0 50 50", alt="Profile image")
|
||||||
circle.head(cx="25", cy="19", r="10")
|
circle.head(cx="25", cy="19", r="10")
|
||||||
|
@ -9,9 +9,9 @@ component SoundTrackMedia(track *arn.SoundTrack, media *arn.ExternalMedia)
|
|||||||
.sound-track.mountable(id=track.ID)
|
.sound-track.mountable(id=track.ID)
|
||||||
.sound-track-content
|
.sound-track-content
|
||||||
a.sound-track-anime-link.ajax(href="/anime/" + track.MainAnime().ID)
|
a.sound-track-anime-link.ajax(href="/anime/" + track.MainAnime().ID)
|
||||||
img.sound-track-anime-image.lazy(data-src=track.MainAnime().Image.Small, alt=track.MainAnime().Title.Canonical, title=track.MainAnime().Title.Canonical)
|
img.sound-track-anime-image.lazy(src="", data-src=track.MainAnime().Image.Small, alt=track.MainAnime().Title.Canonical, title=track.MainAnime().Title.Canonical)
|
||||||
|
|
||||||
iframe.lazy(data-src=media.EmbedLink(), allowfullscreen="allowfullscreen")
|
iframe.lazy(src="", data-src=media.EmbedLink(), allowfullscreen="allowfullscreen")
|
||||||
.sound-track-footer
|
.sound-track-footer
|
||||||
a.ajax(href=track.Link())
|
a.ajax(href=track.Link())
|
||||||
Icon("music")
|
Icon("music")
|
||||||
|
@ -102,7 +102,7 @@ component Profile(viewUser *arn.User, user *arn.User, animeList *arn.AnimeList,
|
|||||||
.profile-watching-list.mountable
|
.profile-watching-list.mountable
|
||||||
each item in animeList.Items
|
each item in animeList.Items
|
||||||
a.profile-watching-list-item.ajax(href=item.Anime().Link(), title=item.Anime().Title.Canonical + " (" + toString(item.Episodes) + " / " + arn.EpisodesToString(item.Anime().EpisodeCount) + ")")
|
a.profile-watching-list-item.ajax(href=item.Anime().Link(), title=item.Anime().Title.Canonical + " (" + toString(item.Episodes) + " / " + arn.EpisodesToString(item.Anime().EpisodeCount) + ")")
|
||||||
img.profile-watching-list-item-image.lazy(data-src=item.Anime().Image.Tiny, alt=item.Anime().Title.Canonical)
|
img.profile-watching-list-item-image.lazy(src="", data-src=item.Anime().Image.Tiny, alt=item.Anime().Title.Canonical)
|
||||||
|
|
||||||
//- .profile-category.mountable
|
//- .profile-category.mountable
|
||||||
//- h3
|
//- h3
|
||||||
|
Loading…
Reference in New Issue
Block a user