package templates import ( "fmt" "mal/integrations/jikan" components "mal/web/components" "mal/web/components/ui" "mal/web/components/watch" "mal/web/components/watchlist" "mal/web/shared" "mal/web/shared/layout" ) templ WatchPage(anime jikan.Anime, data shared.WatchPageData) { @layout.Layout(fmt.Sprintf("%s - episode %s", anime.DisplayTitle(), data.CurrentEpisode), true) {
@watch.VideoPlayer(data)
if shared.CanGoPrevEpisode(data.CurrentEpisode) { ◀ Prev } else { ◀ Prev } if shared.CanGoNextEpisode(data.CurrentEpisode, anime.Episodes) { Next ▶ } else { Next ▶ } @watchlist.WatchlistDropdown( anime.MalID, anime.Title, anime.TitleEnglish, anime.TitleJapanese, anime.ImageURL(), data.CurrentStatus, anime.Airing, )

Watch more seasons of this anime

@components.LoadingIndicator("Loading relations")
} }