Fixed HTML5 errors

This commit is contained in:
Eduard Urbach 2017-07-11 17:18:19 +02:00
parent 3917586bd5
commit 1da3e52c55
5 changed files with 6 additions and 6 deletions

View File

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

View File

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

View File

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

View File

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

View File

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