User should always be last function parameter

This commit is contained in:
Eduard Urbach 2018-07-07 16:19:06 +09:00
parent 9c198dc1f7
commit 256632e817
2 changed files with 2 additions and 2 deletions

View File

@ -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))
}

View File

@ -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)