2017-07-03 19:33:52 +02:00
|
|
|
component ImportAnilist(user *arn.User, matches []*arn.AniListMatch)
|
2017-07-06 22:08:49 +02:00
|
|
|
h1= "anilist.co Import (" + user.Accounts.AniList.Nick + ", " + toString(len(matches)) + " anime)"
|
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
|
2017-07-05 00:40:03 +02:00
|
|
|
a(href=match.AniListItem.Anime.Link(), target="_blank", rel="noopener")= match.AniListItem.Anime.TitleRomaji
|
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-07-03 19:33:52 +02:00
|
|
|
.buttons
|
2017-07-05 00:40:03 +02:00
|
|
|
a.button.mountable(href="/import/anilist/animelist/finish")
|
2017-07-03 19:33:52 +02:00
|
|
|
Icon("refresh")
|
|
|
|
span Import
|