2016-11-22 03:34:59 +00:00
|
|
|
component Search(popularAnime []*arn.Anime, titleCount int, animeCount int)
|
|
|
|
h2 Anime
|
|
|
|
|
|
|
|
#search-container
|
|
|
|
input#search(type="text", placeholder="Search...", onkeyup="$.searchAnime();", onfocus="this.select();", disabled="disabled", data-count=titleCount, data-anime-count=animeCount)
|
|
|
|
|
|
|
|
#search-results-container
|
|
|
|
#search-results
|
|
|
|
|
|
|
|
if popularAnime != nil
|
|
|
|
h3.popular-title Popular
|
|
|
|
|
|
|
|
.popular-anime-list
|
|
|
|
each anime in popularAnime
|
2017-06-04 20:06:14 +00:00
|
|
|
a.popular-anime.ajax(href="/anime/" + toString(anime.ID), title=anime.Title.Romaji + " (" + arn.Plural(anime.Watching(), "user") + " watching)")
|
2016-11-22 03:34:59 +00:00
|
|
|
img.anime-image.popular-anime-image(src=anime.Image, alt=anime.Title.Romaji)
|