2017-12-04 20:07:13 +00:00
component AnimeEpisode(anime *arn.Anime, episode *arn.AnimeEpisode, user *arn.User)
2018-03-05 18:40:04 +00:00
h1= anime.Title.ByUser(user)
2018-03-05 18:54:41 +00:00
.episode-view-image-container
2018-03-23 20:33:19 +00:00
a(href=anime.Link(), title=anime.Title.ByUser(user))
2018-03-20 21:39:21 +00:00
img.anime-cover-image.lazy(data-src=anime.ImageLink("large"), data-webp="true", data-color=anime.AverageColor(), alt=anime.Title.ByUser(user))
2018-03-05 18:54:41 +00:00
2018-03-05 18:40:04 +00:00
h3.episode-view-number= "Episode " + strconv.Itoa(episode.Number)
2018-03-05 18:54:41 +00:00
if episode.Title.Japanese != ""
.episode-view-title
Japanese(episode.Title.Japanese)
2018-04-13 19:31:55 +00:00
if validate.DateTime(episode.AiringDate.Start)
2018-03-05 18:40:04 +00:00
p.episode-view-airing-date
span.utc-airing-date(data-start-date=episode.AiringDate.Start, data-end-date=episode.AiringDate.End, data-episode-number=episode.Number)= episode.AiringDate.StartDateHuman()
2018-03-05 18:01:46 +00:00
2018-05-12 10:22:58 +00:00
if user != nil && user.Location.CountryName != "Japan"
2018-03-05 18:40:04 +00:00
.buttons
for serviceName, link := range episode.Links
a.button(href=link, title="Watch episode " + strconv.Itoa(episode.Number), target="_blank", rel="noopener")
Icon("eye")
span= serviceName
2018-03-06 15:04:54 +00:00
//- a.button(href=arn.Nyaa.GetLink(anime, fmt.Sprintf("%02d", episode.Number)), title="Download episode " + strconv.Itoa(episode.Number), target="_blank", rel="noopener")
//- Icon("download")
//- span nyaa.si
2018-03-05 18:40:04 +00:00
.footer
2018-03-05 18:54:41 +00:00
p Make sure to support the anime you're watching by buying officially released Blu-rays and merchandise.
p Anime Notifier provides links to external websites for convenience reasons. By clicking on these links you are leaving our site. Thus we can not, under no circumstances, be held responsible for the content on external websites.