Fixed so works with "infinite" series
This commit is contained in:
parent
e9d98b3e75
commit
3be4421391
@ -12,7 +12,7 @@ component AnimeEpisode(anime *arn.Anime, episode *arn.AnimeEpisode, user *arn.Us
|
|||||||
//- a.button(href=anime.Link() + "/episode/" + strconv.Itoa(episode.Number - 1))
|
//- a.button(href=anime.Link() + "/episode/" + strconv.Itoa(episode.Number - 1))
|
||||||
//- Icon("chevron-left")
|
//- Icon("chevron-left")
|
||||||
|
|
||||||
//- if episode.Number + 1 < anime.EpisodeCount
|
//- if episode.Number + 1 <= len(anime.Episodes().Items)
|
||||||
//- a.button(href=anime.Link() + "/episode/" + strconv.Itoa(episode.Number + 1))
|
//- a.button(href=anime.Link() + "/episode/" + strconv.Itoa(episode.Number + 1))
|
||||||
//- Icon("chevron-right")
|
//- Icon("chevron-right")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user