2018-03-17 03:19:23 +00:00
|
|
|
component NewKitsuAnime(animes []*kitsu.Anime, url string, user *arn.User)
|
2018-03-23 00:43:45 +00:00
|
|
|
EditorTabs(url, user)
|
2018-03-17 03:19:23 +00:00
|
|
|
h1.mountable New anime on Kitsu
|
|
|
|
|
|
|
|
if len(animes) == 0
|
|
|
|
p.text-center.mountable No new anime found.
|
|
|
|
else
|
|
|
|
table
|
|
|
|
thead
|
|
|
|
tr.mountable
|
|
|
|
th ID
|
|
|
|
th Image
|
|
|
|
th Title
|
|
|
|
th Type
|
|
|
|
th Year
|
2018-03-18 20:41:13 +00:00
|
|
|
th Actions
|
2018-03-17 03:19:23 +00:00
|
|
|
tbody
|
|
|
|
each anime in animes
|
|
|
|
tr.mountable
|
|
|
|
td= anime.ID
|
|
|
|
td
|
|
|
|
a(href="https://kitsu.io/anime/" + anime.ID, target="_blank")
|
|
|
|
img.profile-watching-list-item-image(src=anime.Attributes.PosterImage.Tiny, alt=anime.Attributes.CanonicalTitle)
|
2018-09-27 06:12:19 +00:00
|
|
|
td.kitsu-import-title
|
2018-03-17 03:19:23 +00:00
|
|
|
a(href="https://kitsu.io/anime/" + anime.ID, target="_blank")= anime.Attributes.CanonicalTitle
|
|
|
|
td= anime.Attributes.ShowType
|
|
|
|
td
|
|
|
|
if len(anime.Attributes.StartDate) >= 4
|
2018-03-18 20:41:13 +00:00
|
|
|
span= anime.Attributes.StartDate[:4]
|
|
|
|
td
|
2018-04-17 10:27:54 +00:00
|
|
|
.buttons
|
2018-09-27 06:12:19 +00:00
|
|
|
button.tip.action(data-action="importKitsuAnime", data-trigger="click", data-id=anime.ID, aria-label="Import")
|
2018-04-17 10:27:54 +00:00
|
|
|
RawIcon("download")
|
|
|
|
|
2018-09-27 06:12:19 +00:00
|
|
|
button.tip.action(data-action="deleteKitsuAnime", data-trigger="click", data-id=anime.ID, aria-label="Delete")
|
2018-04-17 10:27:54 +00:00
|
|
|
RawIcon("trash")
|