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
|
|
|
|
2017-11-30 16:57:31 +00:00
|
|
|
.corner-buttons-hide-on-mobile
|
2018-03-17 21:09:17 +00:00
|
|
|
if user != nil
|
|
|
|
button.action(data-trigger="click", data-action="hideAddedAnime", title="Hide anime in my collection")
|
|
|
|
RawIcon("eye-slash")
|
2017-12-02 20:06:15 +00:00
|
|
|
|
2018-03-21 21:57:06 +00:00
|
|
|
a.button.ajax(href="/explore/color/any/anime", title="View colors")
|
|
|
|
RawIcon("paint-brush")
|
|
|
|
|
2017-12-02 20:06:15 +00:00
|
|
|
a.button.ajax(href="/genres", title="View genres")
|
|
|
|
RawIcon("clone")
|
2017-11-30 16:57:31 +00:00
|
|
|
|
2017-11-07 16:46:39 +00:00
|
|
|
h1.page-title Explore
|
|
|
|
|
2017-11-30 16:57:31 +00:00
|
|
|
.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
|