2017-07-03 19:33:52 +02:00
|
|
|
component ImportAnilist(user *arn.User, matches []*arn.AniListMatch)
|
2018-04-25 22:15:42 +02:00
|
|
|
h1= "Preview: anilist.co (" + user.Accounts.AniList.Nick + ", " + fmt.Sprint(len(matches)) + " anime)"
|
2017-11-20 09:39:47 +01:00
|
|
|
|
|
|
|
ImportButton("/import/anilist/animelist/finish")
|
2017-07-03 19:33:52 +02:00
|
|
|
|
2017-07-04 16:24:46 +02:00
|
|
|
table.import-list
|
2017-07-03 19:33:52 +02:00
|
|
|
thead
|
|
|
|
tr
|
|
|
|
th anilist.co
|
|
|
|
th notify.moe
|
|
|
|
tbody
|
|
|
|
each match in matches
|
|
|
|
tr
|
|
|
|
td
|
2018-04-05 22:36:59 +02:00
|
|
|
a(href=match.AniListItem.Anime.Link(), target="_blank", rel="noopener")= match.AniListItem.Anime.Title.Romaji
|
2017-07-03 19:33:52 +02:00
|
|
|
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
|
2017-07-05 00:40:03 +02:00
|
|
|
|
2017-11-20 09:39:47 +01:00
|
|
|
ImportButton("/import/anilist/animelist/finish")
|