33 lines
1.1 KiB
Plaintext
Raw Normal View History

2018-03-23 00:43:45 +00:00
component AnimeEditorListFull(title string, missing []*arn.Anime, count int, pageURI string, generateSearchLink func(*arn.Anime) string, user *arn.User)
EditorTabs(pageURI, user)
2018-03-22 19:15:21 +00:00
h1.editor-list-page-title.mountable= title
.footer.editor-list-entry-count.mountable= strconv.Itoa(count) + " anime"
2018-03-07 21:06:02 +00:00
AnimeEditorList(missing, pageURI, generateSearchLink)
2018-03-07 21:06:02 +00:00
component AnimeEditorList(animes []*arn.Anime, pageURI string, generateSearchLink func(*arn.Anime) string)
2018-03-22 19:15:21 +00:00
table.editor-list
thead
tr.mountable
2018-03-22 19:15:21 +00:00
th Score
th Title
th Type
th Year
2018-03-07 03:15:07 +00:00
if generateSearchLink != nil
th Tools
tbody
each anime in animes
tr.mountable
2018-03-22 19:15:21 +00:00
td= anime.ScoreHumanReadable()
2018-03-21 19:22:57 +00:00
td
2018-03-22 19:15:21 +00:00
a(href=anime.Link(), target="_blank", rel="noopener")
img.anime-list-item-image.lazy(data-src=anime.ImageLink("small"), data-webp="true", data-color=anime.AverageColor(), alt=anime.Title.Canonical)
span= anime.Title.Canonical
td= anime.Type
td
if len(anime.StartDate) >= 4
2018-03-23 00:43:45 +00:00
span= anime.StartDate[:4]
2018-03-07 03:15:07 +00:00
if generateSearchLink != nil
td
2018-03-07 21:35:10 +00:00
a(href=generateSearchLink(anime), target="_blank", rel="noopener") 🔍