33 lines
1.1 KiB
Plaintext
33 lines
1.1 KiB
Plaintext
component ExploreAnime(animeList []*arn.Anime, year string, status string, typ string, user *arn.User)
|
|
ExploreFilters(year, status, typ)
|
|
|
|
.corner-buttons-hide-on-mobile
|
|
a.button.ajax(href="/genres")
|
|
Icon("clone")
|
|
span View genres
|
|
|
|
h1.page-title Explore
|
|
|
|
.explore-anime
|
|
if len(animeList) == 0
|
|
p.no-data.mountable No anime found using the above filters.
|
|
else
|
|
AnimeGrid(animeList, user)
|
|
|
|
component ExploreFilters(year string, status string, typ string)
|
|
.explore-filters
|
|
select#filter-year.action(value=year, data-action="filterAnime", data-trigger="change")
|
|
for year := time.Now().Year()+1; year >= 1951; year--
|
|
option(value=year)= year
|
|
|
|
select#filter-status.action(value=status, data-action="filterAnime", data-trigger="change")
|
|
option(value="current") Current
|
|
option(value="upcoming") Upcoming
|
|
option(value="finished") Finished
|
|
|
|
select#filter-type.action(value=typ, data-action="filterAnime", data-trigger="change")
|
|
option(value="tv") TV
|
|
option(value="movie") Movie
|
|
option(value="ova") OVA
|
|
option(value="ona") ONA
|
|
option(value="special") Special |