26 lines
1.0 KiB
Plaintext
Raw Normal View History

2017-06-25 12:58:27 +00:00
component AnimeList(animeList *arn.AnimeList, user *arn.User)
2017-06-19 20:16:01 +00:00
table.anime-list
thead
tr
2017-06-20 18:13:04 +00:00
th.anime-list-item-name Anime
2017-06-25 12:58:27 +00:00
th.anime-list-item-episodes Episodes
2017-06-20 18:13:04 +00:00
th.anime-list-item-rating Rating
2017-06-25 12:58:27 +00:00
if user != nil
th.anime-list-item-actions Actions
2017-06-19 20:16:01 +00:00
tbody
each item in animeList.Items
2017-06-21 12:00:52 +00:00
tr.anime-list-item.mountable(title=item.Notes)
2017-06-20 18:13:04 +00:00
td.anime-list-item-name
2017-06-20 10:41:26 +00:00
a.ajax(href=item.Anime().Link())= item.Anime().Title.Canonical
2017-06-24 21:24:15 +00:00
td.anime-list-item-episodes
2017-06-25 12:58:27 +00:00
.anime-list-item-episodes-watched= item.Episodes
.anime-list-item-episodes-separator /
.anime-list-item-episodes-max= item.Anime().EpisodeCountString()
.anime-list-item-episodes-edit
a.ajax(href=item.Link(animeList.User().Nick), title="Edit anime")
RawIcon("pencil")
td.anime-list-item-rating= item.FinalRating()
if user != nil
td.anime-list-item-actions
a(href=arn.Nyaa.GetLink(item.Anime()), title="Search on Nyaa", target="_blank", rel="noopener")
RawIcon("download")