2017-12-04 20:07:13 +00:00
|
|
|
component AnimeEpisode(anime *arn.Anime, episode *arn.AnimeEpisode, user *arn.User)
|
|
|
|
h1= episode.Title.Japanese
|
|
|
|
p
|
|
|
|
a.ajax(href=anime.Link(), title=anime.Title.ByUser(user))
|
|
|
|
img(src=anime.Image("medium"), alt=anime.Title.ByUser(user))
|
|
|
|
|
|
|
|
if validator.IsValidDate(episode.AiringDate.Start)
|
|
|
|
.utc-airing-date(data-start-date=episode.AiringDate.Start, data-end-date=episode.AiringDate.End, data-episode-number=episode.Number)= episode.AiringDate.StartDateHuman()
|
2018-02-08 13:21:24 +00:00
|
|
|
ul
|
|
|
|
for _, link := range episode.Links
|
|
|
|
a(href=link, title="Watch episode " + strconv.Itoa(episode.Number), target="_blank", rel="noopener")
|
|
|
|
RawIcon("eye")
|