2018-03-07 21:06:02 +00:00
|
|
|
component AnimeEditorListFull(title string, missing []*arn.Anime, count int, pageURI string, generateSearchLink func(*arn.Anime) string)
|
2018-03-07 20:25:24 +00:00
|
|
|
EditorTabs
|
|
|
|
h1.editor-list-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 20:25:24 +00:00
|
|
|
|
2018-03-07 21:06:02 +00:00
|
|
|
component AnimeEditorList(animes []*arn.Anime, pageURI string, generateSearchLink func(*arn.Anime) string)
|
2018-03-07 03:03:15 +00:00
|
|
|
table
|
|
|
|
thead
|
|
|
|
tr.mountable
|
|
|
|
th(title="Popularity") Pop.
|
|
|
|
th Title
|
|
|
|
th Type
|
|
|
|
th Year
|
2018-03-07 03:15:07 +00:00
|
|
|
|
|
|
|
if generateSearchLink != nil
|
|
|
|
th Tools
|
2018-03-07 03:03:15 +00:00
|
|
|
tbody
|
|
|
|
each anime in animes
|
|
|
|
tr.mountable
|
|
|
|
td= anime.Popularity.Total()
|
|
|
|
td
|
|
|
|
a(href=anime.Link(), target="_blank", rel="noopener")= anime.Title.Canonical
|
|
|
|
td= anime.Type
|
|
|
|
td
|
|
|
|
if len(anime.StartDate) >= 4
|
2018-03-07 21:06:02 +00:00
|
|
|
a.ajax(href=pageURI + "/" + anime.StartDate[:4])= 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") 🔍
|