Improved episode pages

This commit is contained in:
Eduard Urbach 2018-03-05 19:54:41 +01:00
parent 25e3777c9d
commit b547c76fd8
2 changed files with 16 additions and 7 deletions

View File

@ -1,15 +1,19 @@
component AnimeEpisode(anime *arn.Anime, episode *arn.AnimeEpisode, user *arn.User)
h1= anime.Title.ByUser(user)
h3.episode-view-number= "Episode " + strconv.Itoa(episode.Number)
if validator.IsValidDate(episode.AiringDate.Start)
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()
.episode-view-image-container
a.ajax(href=anime.Link(), title=anime.Title.ByUser(user))
img.anime-cover-image(src=anime.Image("large"), alt=anime.Title.ByUser(user))
h3.episode-view-number= "Episode " + strconv.Itoa(episode.Number)
if episode.Title.Japanese != ""
.episode-view-title
Japanese(episode.Title.Japanese)
if validator.IsValidDate(episode.AiringDate.Start)
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()
if user != nil
.buttons
@ -23,4 +27,5 @@ component AnimeEpisode(anime *arn.Anime, episode *arn.AnimeEpisode, user *arn.Us
span nyaa.si
.footer
p Make sure to support the anime you're watching by buying officially released Blu-rays and merchandise. Thank you.
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.

View File

@ -2,6 +2,10 @@
text-align center
margin 0
.episode-view-title
text-align center
margin-top 0.5rem
.episode-view-airing-date
text-align center
opacity 0.5