22 lines
857 B
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-19 18:59:02 +00:00
.widgets
.widget.anime-list-item-view
2017-06-20 10:41:26 +00:00
h2= anime.Title.Canonical
2017-06-19 18:59:02 +00:00
if anime.EpisodeCount == 0
InputNumber("episodes", item.Episodes, "Episodes", "Number of episodes you watched", 0, 10000)
else
InputNumber("episodes", item.Episodes, "Episodes", "Number of episodes you watched", 0, anime.EpisodeCount)
2017-06-20 10:41:26 +00:00
InputTextArea("notes", item.Notes, "Notes", "Notes")
2017-06-20 11:15:32 +00:00
.buttons
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
button.action(data-action="removeAnimeFromCollection", data-anime-id=anime.ID, data-user-id=viewUser.ID, data-user-nick=viewUser.Nick)
Icon("trash")
span Remove from collection