20 lines
993 B
Plaintext
Raw Normal View History

2017-11-22 10:51:59 +00:00
component Calendar(days []*utils.CalendarDay, user *arn.User)
2017-11-22 11:39:36 +00:00
h1.mountable Calendar
2017-11-22 10:51:59 +00:00
2018-03-12 00:27:33 +00:00
.corner-buttons
2017-12-03 18:08:05 +00:00
button.action(data-trigger="click", data-action="calendarShowAddedAnimeOnly", title="Show anime in my collection")
RawIcon("eye")
2017-11-22 10:51:59 +00:00
.week
each day in days
2017-12-03 18:08:05 +00:00
div(class=day.Class)
2017-11-22 11:39:36 +00:00
h3.weekday-name.mountable(data-mountable-type=day.Name)= day.Name
2017-11-22 11:04:04 +00:00
.calendar-entries
2017-11-22 10:51:59 +00:00
each entry in day.Entries
a.calendar-entry.mountable(href=entry.Anime.Link(), data-mountable-type=day.Name, data-added=entry.Added)
2018-03-20 21:39:21 +00:00
img.calendar-entry-image.lazy(data-src=entry.Anime.ImageLink("small"), data-webp="true", data-color=entry.Anime.AverageColor(), alt=entry.Anime.Title.ByUser(user))
2017-11-22 11:20:57 +00:00
.calendar-entry-info
2018-03-08 16:36:55 +00:00
.calendar-entry-title= entry.Anime.Title.ByUser(user)
.calendar-entry-time-and-episode
.calendar-entry-time.utc-date-absolute(data-date=entry.Episode.AiringDate.Start)
.calendar-entry-episode= "Ep: " + strconv.Itoa(entry.Episode.Number)