22 lines
705 B
Plaintext
22 lines
705 B
Plaintext
component ImportKitsu(user *arn.User, matches []*arn.KitsuMatch)
|
|
h1= "Preview: kitsu.io (" + user.Accounts.Kitsu.Nick + ", " + fmt.Sprint(len(matches)) + " anime)"
|
|
|
|
ImportButton("/import/kitsu/animelist/finish")
|
|
|
|
table.import-list
|
|
thead
|
|
tr
|
|
th kitsu.io
|
|
th notify.moe
|
|
tbody
|
|
each match in matches
|
|
tr
|
|
td
|
|
a(href=match.KitsuItem.Anime.Link(), target="_blank", rel="noopener")= match.KitsuItem.Anime.Attributes.CanonicalTitle
|
|
td
|
|
if match.ARNAnime == nil
|
|
span.import-error Not found on notify.moe
|
|
else
|
|
a(href=match.ARNAnime.Link(), target="_blank", rel="noopener")= match.ARNAnime.Title.Canonical
|
|
|
|
ImportButton("/import/kitsu/animelist/finish") |