Minor fix
This commit is contained in:
parent
4133b4f56c
commit
22f3a767a8
@ -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
|
@ -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 ""
|
|
||||||
}))
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user