Fixed forum notifications
This commit is contained in:
parent
78468e4f60
commit
1923a1a889
@ -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(src="", data-src=anime.Image.Small, alt=anime.Title.Romaji, title=anime.Title.Romaji + " (" + toString(anime.Rating.Overall) + ")")
|
img.anime-grid-image.lazy(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(src="", data-src=user.SmallAvatar(), data-webp="true", alt=user.Nick)
|
img.user-image.lazy(data-src=user.SmallAvatar(), data-webp="true", alt=user.Nick)
|
||||||
else
|
else
|
||||||
SVGAvatar
|
SVGAvatar
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
component Character(character *arn.Character)
|
component Character(character *arn.Character)
|
||||||
a.character.ajax(href="/character/" + character.ID)
|
a.character.ajax(href="/character/" + character.ID)
|
||||||
img.character-image.lazy(src="", data-src=character.Image, alt=character.Name, title=character.Name)
|
img.character-image.lazy(data-src=character.Image, alt=character.Name, title=character.Name)
|
||||||
//- span.character-name= character.Name
|
//- span.character-name= character.Name
|
@ -1,6 +1,6 @@
|
|||||||
component ProfileImage(user *arn.User)
|
component ProfileImage(user *arn.User)
|
||||||
if user.HasAvatar()
|
if user.HasAvatar()
|
||||||
img.profile-image.lazy(src="", data-src=user.LargeAvatar(), data-webp="true", alt="Profile image")
|
img.profile-image.lazy(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(src="", data-src=track.MainAnime().Image.Small, alt=track.MainAnime().Title.Canonical, title=track.MainAnime().Title.Canonical)
|
img.sound-track-anime-image.lazy(data-src=track.MainAnime().Image.Small, alt=track.MainAnime().Title.Canonical, title=track.MainAnime().Title.Canonical)
|
||||||
|
|
||||||
iframe.lazy(src="", data-src=media.EmbedLink(), allowfullscreen="allowfullscreen")
|
iframe.lazy(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")
|
||||||
|
@ -108,7 +108,7 @@ component Profile(viewUser *arn.User, user *arn.User, animeList *arn.AnimeList,
|
|||||||
each item in animeList.Items
|
each item in animeList.Items
|
||||||
if item.Status == arn.AnimeListStatusWatching || item.Status == arn.AnimeListStatusCompleted
|
if item.Status == arn.AnimeListStatusWatching || item.Status == arn.AnimeListStatusCompleted
|
||||||
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(src="", data-src=item.Anime().Image.Tiny, alt=item.Anime().Title.Canonical)
|
img.profile-watching-list-item-image.lazy(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