New filters for soundtrack editors

This commit is contained in:
2018-04-13 13:09:46 +02:00
parent 06c09bc1ff
commit b1bc006a0c
10 changed files with 159 additions and 41 deletions

View File

@ -1,33 +0,0 @@
component AnimeEditorListFull(title string, missing []*arn.Anime, count int, pageURI string, generateSearchLink func(*arn.Anime) string, user *arn.User)
EditorTabs(pageURI, user)
h1.editor-list-page-title.mountable= title
.footer.editor-list-entry-count.mountable= strconv.Itoa(count) + " anime"
AnimeEditorList(missing, pageURI, generateSearchLink)
component AnimeEditorList(animes []*arn.Anime, pageURI string, generateSearchLink func(*arn.Anime) string)
table.editor-list
thead
tr.mountable
th Score
th Title
th Type
th Year
if generateSearchLink != nil
th Tools
tbody
each anime in animes
tr.mountable
td= anime.ScoreHumanReadable()
td
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
span= anime.StartDate[:4]
if generateSearchLink != nil
td
a(href=generateSearchLink(anime), target="_blank", rel="noopener") 🔍