Fixed title on genre pages

This commit is contained in:
Eduard Urbach 2016-11-20 05:04:33 +09:00
parent 76fee33c7d
commit cc1a57095b
2 changed files with 4 additions and 4 deletions

View File

@ -15,5 +15,5 @@ func Get(ctx *aero.Context) string {
return err.Error()
}
return ctx.HTML(components.Genre(genre.Name, genre.AnimeList))
return ctx.HTML(components.Genre(genre))
}

View File

@ -1,6 +1,6 @@
component Genre(genre string, animeList []*arn.Anime)
h2.genre-header= arn.Capitalize(genre)
component Genre(genre *arn.Genre)
h2= arn.Capitalize(genre.ID)
.grid
each anime in animeList
each anime in genre.AnimeList
a.grid-cell.grid-anime.ajax(href="/anime/" + toString(anime.ID))
img.anime-image.grid-image(src=anime.Image, alt=anime.Title.Romaji, title=anime.Title.Romaji + " (" + toString(anime.Watching) + ")")