Added list import preview

This commit is contained in:
2017-07-03 19:33:52 +02:00
parent 4f6ffd969d
commit 7262f4db7b
7 changed files with 129 additions and 0 deletions

View File

@ -0,0 +1,23 @@
component ImportAnilist(user *arn.User, matches []*arn.AniListMatch)
h2= "Import: anilist.co"
table
thead
tr
th anilist.co
th notify.moe
tbody
each match in matches
tr
td
a(href=match.AniListAnime.Link(), target="_blank", rel="noopener")= match.AniListAnime.TitleRomaji
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
.buttons
.button.mountable.action(data-action="soon", data-trigger="click")
Icon("refresh")
span Import