22 lines
739 B
Plaintext

component ImportMyAnimeList(user *arn.User, matches []*arn.MyAnimeListMatch)
h1= "Preview: myanimelist.net (" + user.Accounts.MyAnimeList.Nick + ", " + fmt.Sprint(len(matches)) + " anime)"
ImportButton("/import/myanimelist/animelist/finish")
table.import-list
thead
tr
th myanimelist.net
th notify.moe
tbody
each match in matches
tr
td
a(href=match.MyAnimeListItem.AnimeLink(), target="_blank", rel="noopener")= match.MyAnimeListItem.AnimeTitle
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/myanimelist/animelist/finish")