30 lines
1.3 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-29 06:32:46 +00:00
th.anime-list-item-airing-date Airing
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-26 10:21:42 +00:00
a.ajax(href=item.Link(animeList.User().Nick))= item.Anime().Title.Canonical
2017-06-29 06:32:46 +00:00
td.anime-list-item-airing-date
if item.Anime().UpcomingEpisode() != nil
span.utc-date(data-start-date=item.Anime().UpcomingEpisode().Episode.AiringDate.Start, data-end-date=item.Anime().UpcomingEpisode().Episode.AiringDate.End, data-episode-number=item.Anime().UpcomingEpisode().Episode.Number)
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()
2017-06-26 10:21:42 +00:00
//- .anime-list-item-episodes-edit
//- a.ajax(href=, title="Edit anime")
//- RawIcon("pencil")
2017-06-25 12:58:27 +00: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")