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,7 +6,9 @@ component AnimeEditorList(animes []*arn.Anime, generateSearchLink func(*arn.Anim
th Title th Title
th Type th Type
th Year th Year
th Tools
if generateSearchLink != nil
th Tools
tbody tbody
each anime in animes each anime in animes
tr.mountable tr.mountable
@ -17,5 +19,7 @@ component AnimeEditorList(animes []*arn.Anime, generateSearchLink func(*arn.Anim
td td
if len(anime.StartDate) >= 4 if len(anime.StartDate) >= 4
span= anime.StartDate[:4] span= anime.StartDate[:4]
td
a(href=generateSearchLink(anime), target="_blank", rel="noopener") Search 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] missing = missing[:maxGenreEntries]
} }
return ctx.HTML(components.AnimeWithoutGenres(missing, func(anime *arn.Anime) string { return ctx.HTML(components.AnimeWithoutGenres(missing, nil))
return ""
}))
} }