Refactor
This commit is contained in:
@ -31,7 +31,7 @@ component Anime(anime *arn.Anime, friends []*arn.User, listItems map[*arn.User]*
|
||||
Icon("pencil")
|
||||
span Edit in collection
|
||||
else
|
||||
button.action(data-api="/api/animelist/" + user.ID, data-action="arrayAppend", data-trigger="click", data-field="Items", data-object="{\"AnimeID\": \"" + anime.ID + "\"}")
|
||||
button.action(data-api="/api/animelist/" + user.ID, data-action="addAnimeToCollection", data-trigger="click", data-anime-id=anime.ID)
|
||||
Icon("plus")
|
||||
span Add to collection
|
||||
|
||||
|
@ -38,6 +38,7 @@
|
||||
:hover
|
||||
.plus-episode
|
||||
opacity 1
|
||||
pointer-events all
|
||||
|
||||
.anime-list-item-episodes-watched
|
||||
flex 0.4
|
||||
@ -48,6 +49,7 @@
|
||||
display inline-block
|
||||
cursor pointer
|
||||
opacity 0
|
||||
pointer-events none
|
||||
margin-left 1px
|
||||
transition opacity transition-speed ease
|
||||
|
||||
|
@ -33,6 +33,6 @@ component AnimeListItem(viewUser *arn.User, item *arn.AnimeListItem, anime *arn.
|
||||
a.ajax.button(href=anime.Link())
|
||||
Icon("search-plus")
|
||||
span View anime
|
||||
button.action(data-action="removeAnimeFromCollection", data-trigger="click", data-api="/api/animelist/" + viewUser.ID, data-field="Items", data-index="AnimeID=\"" + anime.ID + "\"", data-nick=viewUser.Nick)
|
||||
button.action(data-action="removeAnimeFromCollection", data-trigger="click", data-api="/api/animelist/" + viewUser.ID, data-anime-id=anime.ID, data-nick=viewUser.Nick)
|
||||
Icon("trash")
|
||||
span Remove from collection
|
Reference in New Issue
Block a user