diff --git a/mixins/AnimeEditorList.pixy b/mixins/AnimeEditorList.pixy index faf7ba1f..0341ca99 100644 --- a/mixins/AnimeEditorList.pixy +++ b/mixins/AnimeEditorList.pixy @@ -6,7 +6,9 @@ component AnimeEditorList(animes []*arn.Anime, generateSearchLink func(*arn.Anim th Title th Type th Year - th Tools + + if generateSearchLink != nil + th Tools tbody each anime in animes tr.mountable @@ -17,5 +19,7 @@ component AnimeEditorList(animes []*arn.Anime, generateSearchLink func(*arn.Anim td if len(anime.StartDate) >= 4 span= anime.StartDate[:4] - td - a(href=generateSearchLink(anime), target="_blank", rel="noopener") Search \ No newline at end of file + + if generateSearchLink != nil + td + a(href=generateSearchLink(anime), target="_blank", rel="noopener") Search \ No newline at end of file diff --git a/pages/editor/genres.go b/pages/editor/genres.go index 105156dd..8eec0048 100644 --- a/pages/editor/genres.go +++ b/pages/editor/genres.go @@ -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)) }