35 lines
1.2 KiB
Plaintext
Raw Normal View History

2017-11-12 10:18:16 +00:00
component ExploreAnime(animeList []*arn.Anime, year string, status string, typ string, user *arn.User)
2018-03-10 09:15:05 +00:00
ExploreFilters(year, status, typ, "filterAnime")
2017-11-07 16:46:39 +00:00
.corner-buttons-hide-on-mobile
button.action(data-trigger="click", data-action="hideAddedAnime", title="Hide anime in my collection")
RawIcon("eye-slash")
a.button.ajax(href="/genres", title="View genres")
RawIcon("clone")
2017-11-07 16:46:39 +00:00
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)
2017-11-07 16:46:39 +00:00
2018-03-10 09:15:05 +00:00
component ExploreFilters(year string, status string, typ string, action string)
2017-11-07 16:46:39 +00:00
.explore-filters
2018-03-10 09:15:05 +00:00
select#filter-year.action(value=year, data-action=action, data-trigger="change")
2017-11-07 16:46:39 +00:00
for year := time.Now().Year()+1; year >= 1951; year--
option(value=year)= year
2018-03-10 09:15:05 +00:00
select#filter-status.action(value=status, data-action=action, data-trigger="change")
2017-11-07 16:46:39 +00:00
option(value="current") Current
option(value="upcoming") Upcoming
option(value="finished") Finished
2018-03-10 09:15:05 +00:00
select#filter-type.action(value=typ, data-action=action, data-trigger="change")
2017-11-07 16:46:39 +00:00
option(value="tv") TV
option(value="movie") Movie
option(value="ova") OVA
option(value="ona") ONA
option(value="special") Special