Fixed friend's episode progress in episode list
This commit is contained in:
parent
9ca6fd744f
commit
085417edce
@ -9,7 +9,7 @@ component AnimeEpisodes(anime *arn.Anime, episodes []*arn.AnimeEpisode, episodeT
|
|||||||
a(href=anime.Episodes().Link()) Episodes
|
a(href=anime.Episodes().Link()) Episodes
|
||||||
|
|
||||||
.episodes
|
.episodes
|
||||||
for index, episode := range episodes
|
each episode in episodes
|
||||||
a.episode.mountable(href=anime.Link() + "/episode/" + strconv.Itoa(episode.Number), data-mountable-type="episode", data-available=episode.Available())
|
a.episode.mountable(href=anime.Link() + "/episode/" + strconv.Itoa(episode.Number), data-mountable-type="episode", data-available=episode.Available())
|
||||||
.episode-number
|
.episode-number
|
||||||
if episode.Number != -1
|
if episode.Number != -1
|
||||||
@ -24,5 +24,5 @@ component AnimeEpisodes(anime *arn.Anime, episodes []*arn.AnimeEpisode, episodeT
|
|||||||
.episode-airing-date-start.utc-airing-date.no-tip(data-start-date=episode.AiringDate.Start, data-end-date=episode.AiringDate.End, data-episode-number=episode.Number)= episode.AiringDate.StartDateHuman()
|
.episode-airing-date-start.utc-airing-date.no-tip(data-start-date=episode.AiringDate.Start, data-end-date=episode.AiringDate.End, data-episode-number=episode.Number)= episode.AiringDate.StartDateHuman()
|
||||||
|
|
||||||
.episode-friends
|
.episode-friends
|
||||||
each friend in episodeToFriends[index+1]
|
each friend in episodeToFriends[episode.Number]
|
||||||
AvatarNoLink(friend)
|
AvatarNoLink(friend)
|
||||||
|
Loading…
Reference in New Issue
Block a user