From 7827efb412d4c9f9f36b56101ccd815a68e2585e Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Thu, 8 Feb 2018 14:21:24 +0100 Subject: [PATCH] Added episode links --- pages/animeepisode/animeepisode.go | 7 ------- pages/episode/episode.pixy | 5 ++++- 2 files changed, 4 insertions(+), 8 deletions(-) delete mode 100644 pages/animeepisode/animeepisode.go diff --git a/pages/animeepisode/animeepisode.go b/pages/animeepisode/animeepisode.go deleted file mode 100644 index 736ac5e4..00000000 --- a/pages/animeepisode/animeepisode.go +++ /dev/null @@ -1,7 +0,0 @@ -package animeepisode - -import "github.com/aerogo/aero" - -func Get(ctx *aero.Context) string { - return ctx.HTML("") -} diff --git a/pages/episode/episode.pixy b/pages/episode/episode.pixy index 50cf7737..0e6a9150 100644 --- a/pages/episode/episode.pixy +++ b/pages/episode/episode.pixy @@ -6,4 +6,7 @@ component AnimeEpisode(anime *arn.Anime, episode *arn.AnimeEpisode, user *arn.Us 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() - \ No newline at end of file + ul + for _, link := range episode.Links + a(href=link, title="Watch episode " + strconv.Itoa(episode.Number), target="_blank", rel="noopener") + RawIcon("eye") \ No newline at end of file