23 lines
710 B
Plaintext
Raw Normal View History

2017-07-03 17:33:52 +00:00
component ImportAnilist(user *arn.User, matches []*arn.AniListMatch)
2017-07-06 20:08:49 +00:00
h1= "anilist.co Import (" + user.Accounts.AniList.Nick + ", " + toString(len(matches)) + " anime)"
2017-07-03 17:33:52 +00:00
2017-07-04 14:24:46 +00:00
table.import-list
2017-07-03 17:33:52 +00:00
thead
tr
th anilist.co
th notify.moe
tbody
each match in matches
tr
td
2017-07-04 22:40:03 +00:00
a(href=match.AniListItem.Anime.Link(), target="_blank", rel="noopener")= match.AniListItem.Anime.TitleRomaji
2017-07-03 17:33:52 +00: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-04 22:40:03 +00:00
2017-07-03 17:33:52 +00:00
.buttons
2017-07-04 22:40:03 +00:00
a.button.mountable(href="/import/anilist/animelist/finish")
2017-07-03 17:33:52 +00:00
Icon("refresh")
span Import