21 lines
1.1 KiB
Plaintext
Raw Normal View History

2017-06-20 10:41:26 +00:00
component AnimeListItem(viewUser *arn.User, item *arn.AnimeListItem, anime *arn.Anime)
2017-06-20 18:13:04 +00:00
.widgets.mountable
2017-06-21 12:00:52 +00:00
.widget.anime-list-item-view(data-api="/api/animelist/" + viewUser.ID + "/update/" + anime.ID)
2017-06-20 10:41:26 +00:00
h2= anime.Title.Canonical
2017-06-19 18:59:02 +00:00
2017-06-21 12:00:52 +00:00
InputNumber("Episodes", item.Episodes, "Episodes", "Number of episodes you watched", "0", arn.EpisodeCountMax(anime.EpisodeCount))
2017-06-25 12:58:27 +00:00
InputNumber("Rating.Overall", int(item.Rating.Overall + 0.5), "Overall rating", "Overall rating on a scale of 0 to 10", "0", "10")
2017-06-21 12:00:52 +00:00
InputNumber("RewatchCount", item.RewatchCount, "Rewatched", "How often you rewatched this anime", "0", "100")
2017-06-19 18:59:02 +00:00
2017-06-21 12:00:52 +00:00
InputTextArea("Notes", item.Notes, "Notes", "Your notes")
2017-06-20 10:41:26 +00:00
2017-06-20 18:13:04 +00:00
.buttons.mountable
2017-06-20 10:41:26 +00:00
a.ajax.button(href="/+" + viewUser.Nick + "/animelist")
Icon("list")
span View collection
a.ajax.button(href=anime.Link())
Icon("search-plus")
span View anime
2017-06-20 20:54:45 +00:00
button.action(data-action="removeAnimeFromCollection", data-trigger="click", data-anime-id=anime.ID, data-user-id=viewUser.ID, data-user-nick=viewUser.Nick)
2017-06-20 10:41:26 +00:00
Icon("trash")
span Remove from collection