Minor fix

This commit is contained in:
Eduard Urbach 2018-03-07 04:15:07 +01:00
parent 4133b4f56c
commit 22f3a767a8
2 changed files with 8 additions and 6 deletions

View File

@ -6,6 +6,8 @@ component AnimeEditorList(animes []*arn.Anime, generateSearchLink func(*arn.Anim
th Title
th Type
th Year
if generateSearchLink != nil
th Tools
tbody
each anime in animes
@ -17,5 +19,7 @@ component AnimeEditorList(animes []*arn.Anime, generateSearchLink func(*arn.Anim
td
if len(anime.StartDate) >= 4
span= anime.StartDate[:4]
if generateSearchLink != nil
td
a(href=generateSearchLink(anime), target="_blank", rel="noopener") Search

View File

@ -34,7 +34,5 @@ func Genres(ctx *aero.Context) string {
missing = missing[:maxGenreEntries]
}
return ctx.HTML(components.AnimeWithoutGenres(missing, func(anime *arn.Anime) string {
return ""
}))
return ctx.HTML(components.AnimeWithoutGenres(missing, nil))
}