Fixed title on genre pages
This commit is contained in:
parent
76fee33c7d
commit
cc1a57095b
@ -15,5 +15,5 @@ func Get(ctx *aero.Context) string {
|
|||||||
return err.Error()
|
return err.Error()
|
||||||
}
|
}
|
||||||
|
|
||||||
return ctx.HTML(components.Genre(genre.Name, genre.AnimeList))
|
return ctx.HTML(components.Genre(genre))
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
component Genre(genre string, animeList []*arn.Anime)
|
component Genre(genre *arn.Genre)
|
||||||
h2.genre-header= arn.Capitalize(genre)
|
h2= arn.Capitalize(genre.ID)
|
||||||
.grid
|
.grid
|
||||||
each anime in animeList
|
each anime in genre.AnimeList
|
||||||
a.grid-cell.grid-anime.ajax(href="/anime/" + toString(anime.ID))
|
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) + ")")
|
img.anime-image.grid-image(src=anime.Image, alt=anime.Title.Romaji, title=anime.Title.Romaji + " (" + toString(anime.Watching) + ")")
|
Loading…
Reference in New Issue
Block a user