26 lines
1020 B
Plaintext
Raw Normal View History

2017-06-25 14:58:27 +02:00
component AnimeList(animeList *arn.AnimeList, user *arn.User)
2017-06-19 22:16:01 +02:00
table.anime-list
thead
tr
2017-06-20 20:13:04 +02:00
th.anime-list-item-name Anime
2017-06-25 14:58:27 +02:00
th.anime-list-item-episodes Episodes
2017-06-20 20:13:04 +02:00
th.anime-list-item-rating Rating
2017-06-25 14:58:27 +02:00
if user != nil
th.anime-list-item-actions Actions
2017-06-19 22:16:01 +02:00
tbody
each item in animeList.Items
2017-06-21 14:00:52 +02:00
tr.anime-list-item.mountable(title=item.Notes)
2017-06-20 20:13:04 +02:00
td.anime-list-item-name
2017-06-26 12:21:42 +02:00
a.ajax(href=item.Link(animeList.User().Nick))= item.Anime().Title.Canonical
2017-06-24 23:24:15 +02:00
td.anime-list-item-episodes
2017-06-25 14:58:27 +02:00
.anime-list-item-episodes-watched= item.Episodes
.anime-list-item-episodes-separator /
.anime-list-item-episodes-max= item.Anime().EpisodeCountString()
2017-06-26 12:21:42 +02:00
//- .anime-list-item-episodes-edit
//- a.ajax(href=, title="Edit anime")
//- RawIcon("pencil")
2017-06-25 14:58:27 +02:00
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")