Added episode links

This commit is contained in:
Eduard Urbach 2018-02-08 14:21:24 +01:00
parent c49a7a3ca3
commit 7827efb412
2 changed files with 4 additions and 8 deletions

View File

@ -1,7 +0,0 @@
package animeepisode
import "github.com/aerogo/aero"
func Get(ctx *aero.Context) string {
return ctx.HTML("")
}

View File

@ -6,4 +6,7 @@ component AnimeEpisode(anime *arn.Anime, episode *arn.AnimeEpisode, user *arn.Us
if validator.IsValidDate(episode.AiringDate.Start) 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() .utc-airing-date(data-start-date=episode.AiringDate.Start, data-end-date=episode.AiringDate.End, data-episode-number=episode.Number)= episode.AiringDate.StartDateHuman()
ul
for _, link := range episode.Links
a(href=link, title="Watch episode " + strconv.Itoa(episode.Number), target="_blank", rel="noopener")
RawIcon("eye")