From 256632e817dfcb453205291a2149f07a4255cb66 Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Sat, 7 Jul 2018 16:19:06 +0900 Subject: [PATCH] User should always be last function parameter --- pages/episode/episode.go | 2 +- pages/episode/episode.pixy | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/episode/episode.go b/pages/episode/episode.go index dc709de1..9d147339 100644 --- a/pages/episode/episode.go +++ b/pages/episode/episode.go @@ -39,5 +39,5 @@ func Get(ctx *aero.Context) string { return ctx.Error(http.StatusNotFound, "Anime episode not found") } - return ctx.HTML(components.AnimeEpisode(anime, episode, user, episodeIndex)) + return ctx.HTML(components.AnimeEpisode(anime, episode, episodeIndex, user)) } diff --git a/pages/episode/episode.pixy b/pages/episode/episode.pixy index 22355f6b..9a57e8e3 100644 --- a/pages/episode/episode.pixy +++ b/pages/episode/episode.pixy @@ -1,4 +1,4 @@ -component AnimeEpisode(anime *arn.Anime, episode *arn.AnimeEpisode, user *arn.User, episodeIndex int) +component AnimeEpisode(anime *arn.Anime, episode *arn.AnimeEpisode, episodeIndex int, user *arn.User) h1 a(href=anime.Link())= anime.Title.ByUser(user)