Added hide anime in my collection button

This commit is contained in:
2017-12-02 21:06:15 +01:00
parent 0c61456e4e
commit e9f15eacbc
6 changed files with 29 additions and 4 deletions

View File

@ -2,9 +2,11 @@ component ExploreAnime(animeList []*arn.Anime, year string, status string, typ s
ExploreFilters(year, status, typ)
.corner-buttons-hide-on-mobile
a.button.ajax(href="/genres")
Icon("clone")
span View genres
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")
h1.page-title Explore

View File

@ -1,3 +1,8 @@
component Genre(genre string, animes []*arn.Anime, user *arn.User)
h1(title=toString(len(animes)) + " anime")= strings.Title(genre)
.corner-buttons-hide-on-mobile
button.action(data-trigger="click", data-action="hideAddedAnime", title="Hide anime in my collection")
RawIcon("eye-slash")
AnimeGrid(animes, user)