20 lines
993 B
Plaintext
20 lines
993 B
Plaintext
component Calendar(days []*utils.CalendarDay, user *arn.User)
|
|
h1.mountable Calendar
|
|
|
|
.corner-buttons
|
|
button.action(data-trigger="click", data-action="calendarShowAddedAnimeOnly", title="Show anime in my collection")
|
|
RawIcon("eye")
|
|
|
|
.week
|
|
each day in days
|
|
div(class=day.Class)
|
|
h3.weekday-name.mountable(data-mountable-type=day.Name)= day.Name
|
|
.calendar-entries
|
|
each entry in day.Entries
|
|
a.calendar-entry.mountable(href=entry.Anime.Link(), data-mountable-type=day.Name, data-added=entry.Added)
|
|
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))
|
|
.calendar-entry-info
|
|
.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) |